<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
<channel>
<title>CodeStore.net comments on "Domino Login Bookmarklet"</title>
<description>Replies to blog "Domino Login Bookmarklet" on codestore.net.</description>
<link>http://www.codestore.net/</link>
<lastBuildDate>Fri, 31 Jan 2003 08:41:00 +0100</lastBuildDate>
<atom:link href="http://www.codestore.net/store.nsf/blog.xml?Open=20021219" rel="self" type="application/rss+xml" />

<item>
	<title>Reply from Marc Robson</title>
	<pubDate>Fri, 31 Jan 2003 08:41:00 +0100</pubDate>
	<author>Marc Robson</author>
	<description><![CDATA[ 
		<p>Tone -yes, R6 has @WebDBName - pretty handy<br /></p>
		<p>Marc<br /></p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=1B450BE69096EF1C86256CBF0050B8E5"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20021219?OpenDocument#DOC_1B450BE6</link>
</item><item>
	<title>Reply from Tone</title>
	<pubDate>Fri, 20 Dec 2002 14:56:00 +0100</pubDate>
	<author>Tone</author>
	<description><![CDATA[ 
		<p>The amount of times I use "@ReplaceSubstring( @Subset( @DbName; -1 ); ""; "/")", you'd think they give us a ready made @ function for that, wouldn't you?  Maybe there is one in R6!</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=FF49DC9F73F7753B86256C95007312EC"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20021219?OpenDocument#DOC_FF49DC9F</link>
</item><item>
	<title>Reply from Travis Dallegge</title>
	<pubDate>Fri, 20 Dec 2002 10:19:00 +0100</pubDate>
	<author>Travis Dallegge</author>
	<description><![CDATA[ 
		<p>The following can be used to create a login/logout link:</p>
		<p>REM "Script to create login/logout link";</p>
		<p>MyDB :=@ReplaceSubstring(@Subset(@DbName;-1);"";"/");</p>
		<p>@SetTargetFrame("_top");</p>
		<p>"[&lt;a href=""+@If(@Name([CN];@UserName) = "Anonymous";</p>
		<p>"/"+MyDB+"?OpenDatabase&Login" target=_top&gt;Login&lt;/a&gt;]";</p>
		<p>"/"+MyDB+"?Logout&Redirectto="+MyDB+"" target=_top&gt;Logout&lt;/a&gt;]")</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=24DAF01A94688CBC86256C950059A30C"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20021219?OpenDocument#DOC_24DAF01A</link>
</item><item>
	<title>Reply from Tone</title>
	<pubDate>Fri, 20 Dec 2002 07:03:00 +0100</pubDate>
	<author>Tone</author>
	<description><![CDATA[ 
		<p>Top site-admin tip Jake.</p>
		<p>But there are cases where a login link would be useful - where USERS have to authenticate for personalised pages or interactive elements.  Like Notes.net really.</p>
		<p>I'm not sure I will bother though.  I will just put "(Requires Login)" or something on the end of the title attribute of &lt;a&gt; elements that link to bits that require authentication, such as something?OpenForm, or whatever.  Then anonymous has reader access and default applies to anyone logged in, and can have author access for interactive areas such as comments or discussion forums.  Now that can't be proper English.  What's the plural of forum?  Can't be Fora, surely?  Sounds like Flora and Fauna.  Sorry, off-topic there.</p>
		<p>Anyway, anyone who clicks one of my "(Requires Login)" links and fails to authenticate will be told by the $$ReturnAuthorizationFailure or $$ReturnAuthenticationFailure form how to "get" a login.  Then I will get more subscribers hopefully.  My reason for requiring authentication for interactive areas is that I want to run polls/votes/etc that won't show anyone results so far until after they have voted, and won't let them vote twice (unless they are bloody-minded enough to create dual logins in which case they need to get out more).</p>
		<p>I don't know if it's possible to create a Login link without using JavaScript.  On a document, you can get an equivalent URL to the current URL up to the end of the DocumentUniqueId and maybe add ?Open&Login by using the following formula: "http://" + Server_Name + "/" + @ReplaceSubString( @Subset( @DbName; -1 ); "\\"; "/" ) + "/" + "ViewNameOrNumberZero" + "/" + @Text(@DocumentUniqueId) + "?Open&Login"</p>
		<p>I think.  On design elements such as views or pages it would be as simple as doing the following: "http://" + Server_Name + "/" + @ReplaceSubString( @Subset( @DbName; -1 ); "\\"; "/" ) + "ViewOrPageName" + "?Open&Login"</p>
		<p>I can't be the only person interested in accessibility for non-scriptable browsers.  Can I?</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=6444CED870AA124E86256C950047B3D1"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20021219?OpenDocument#DOC_6444CED8</link>
</item><item>
	<title>Reply from John Daniells</title>
	<pubDate>Fri, 20 Dec 2002 03:57:00 +0100</pubDate>
	<author>John Daniells</author>
	<description><![CDATA[ 
		<p>I have many DBs that have default reader access to all parts of the system. When the user is required to perform a specific action - they can login to authenticate.</p>
		<p>Trouble is, even if you login at the .nsf level of the url, IE often 'loses' your credentials.</p>
		<p>The only sure way around this I've found is to set a cookie when you login, and then each page checks for the presence of the cookie and appends '&login' to every link it produces in order to force IE to re-send the credentials.</p>
		<p>Very messy !</p>
		<p>Anyone else had these problems ? </p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=4E08B5F95D5F7F8A86256C950036BA78"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20021219?OpenDocument#DOC_4E08B5F9</link>
</item><item>
	<title>Reply from Dragon Cotterill</title>
	<pubDate>Fri, 20 Dec 2002 01:58:00 +0100</pubDate>
	<author>Dragon Cotterill</author>
	<description><![CDATA[ 
		<p>This is all very well for us techies, but for the common luser they need to have a specific link to force the login otherwise they get confused.</p>
		<p>Personally if a lot of different users are going to be using the system, then I'm all for having an actual login link. If it's just for me to use then I don't bother.</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=4484DEC6D9EE7ADA86256C95002BD9F2"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20021219?OpenDocument#DOC_4484DEC6</link>
</item><item>
	<title>Reply from David Frahm</title>
	<pubDate>Thu, 19 Dec 2002 21:03:00 +0100</pubDate>
	<author>David Frahm</author>
	<description><![CDATA[ 
		<p>Granted I haven't thought long on this, but I'm reading your "Domino Login"                                                                              and I don't get why you use the ".search".  Either time, in fact.</p>
		<p>I get the += (assignment with operation), and the ? : (conditional operator).  Use them all the time.  I also use the search method on strings, but only to match regular expressions where it returns "the position of the start of the first substring of string that matches regexp or -1 if no match was found" -- to quote my O'Reilly JS book.</p>
		<p>So, would you mind "reading" it to me?</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=477C5668250CA50786256C950010C70A"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20021219?OpenDocument#DOC_477C5668</link>
</item><item>
	<title>Reply from Brian McDowell</title>
	<pubDate>Thu, 19 Dec 2002 11:51:00 +0100</pubDate>
	<author>Brian McDowell</author>
	<description><![CDATA[ 
		<p>Here is a notes way to logout, if your just looking to switch users in the same database.</p>
		<p>Db := @ReplaceSubstring(@Text(@Subset(@DbName;-1));"\\";"/");</p>
		<p>@URLOpen(Db+"?Logout&redirectTo=/"+Db)</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=6CA88537B5E5B81186256C94006212CD"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20021219?OpenDocument#DOC_6CA88537</link>
</item><item>
	<title>Reply from Mike Golding</title>
	<pubDate>Thu, 19 Dec 2002 11:06:00 +0100</pubDate>
	<author>Mike Golding</author>
	<description><![CDATA[ 
		<p>If you are using session based logins simply closing the browser leaves a session open on the server, you can use this bookmarklet to logout, it is not great however it relies on .nsf being present.</p>
		<p>javascript:location.href = location.href.substring(0,location.href.indexOf(".nsf")+4) + "/?logout";</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=3A16BD89C89D3AB286256C94005DFA8B"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20021219?OpenDocument#DOC_3A16BD89</link>
</item><item>
	<title>Reply from Jake</title>
	<pubDate>Thu, 19 Dec 2002 09:34:00 +0100</pubDate>
	<author>Jake</author>
	<description><![CDATA[ 
		<p>Close your browser windows</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=88F57AA4A3C60D9286256C9400558B53"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20021219?OpenDocument#DOC_88F57AA4</link>
</item><item>
	<title>Reply from Warren</title>
	<pubDate>Thu, 19 Dec 2002 09:32:00 +0100</pubDate>
	<author>Warren</author>
	<description><![CDATA[ 
		<p>What about login out again?</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=1FCBC6937D4863A086256C9400556319"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20021219?OpenDocument#DOC_1FCBC693</link>
</item><item>
	<title>Reply from Chris</title>
	<pubDate>Thu, 19 Dec 2002 09:02:00 +0100</pubDate>
	<author>Chris</author>
	<description><![CDATA[ 
		<p>This is an awesome bookmarklet Jake, thanks!</p>
		<p>Two great tips in as many days... one would think that you're trying to pull ahead of the pack! </p>
		<p>...or at least keep your mind off of the recent unpleasentness. ;-)</p>
		<p>Thanks again!</p>
		<p>-Chris</p>
		<p>http://www.dominoguru.com</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=C068518197B956EA86256C9400529DD0"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20021219?OpenDocument#DOC_C0685181</link>
</item>

</channel>
</rss> 
