KBD

Keith Devens .com

Tuesday, December 2, 2008 Flag waving
Of course, that's just my opinion. I could be wrong. – Dennis Miller
← Vector programming languagesJoshua Radin: winter (download this song!) →

Daily link icon Monday, March 1, 2004

Pass-through login

An important design pattern for people making web applications: If you have one login screen that guards other pages, make sure that trying to go to a page when not logged in brings you to the login page, and that after you log in you automatically get sent to the page you originally tried to go to. Always. Query parameters and all.

← Vector programming languagesJoshua Radin: winter (download this song!) →

Comments XML gif

Simon Willison (http://simon.incutio.com/) wrote:

The CMS I'm building at the moment goes a step further: we even serialize the post data (if there is any) in a hidden form field and then re-submit it once the user has logged in successfully, thus defending against lost data when a user's session times out while they are doing something.

∴ Simon Willison | 5-Mar-2004 2:03am est | http://simon.incutio.com/ | #4083

Feel free to post a comment below. Please see my comment policy.

Formatting Rules (No HTML):

  • **bold**, *italic*, _underlined_, --strikeout--
  • "text"="url" creates a link, and URLs are auto-highlighted
  • Blockquote: Like e-mail, begin paragraph with > (greater-than sign)
  • Lists: begin paragraph with *,-, or + (unordered), or # (ordered)
  • Code block: ?!code:language=perl|php|sql|javascript|etc.{\n}...{\n}?!/code

:
(will be your IP address if blank)
: (optional)
(Will not be shown on site)

: (optional)
:

December 2008
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
28293031 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 6 posts

Recent comments XML

new⇒Perl 6 1.0 in March?

Doh, my mistake. I'm aware of the​relation between Parrot and Rakudo​but I'...

Keith: Dec 2, 1:03am

Free image hosting sites

Well, TinyPic has this in its​FAQ:

> Images and videos is in​your accoun...

Keith: Dec 1, 1:13am

Join a NameValueCollection into a querystring in C#

Well with a lamba expression, this​is what I came up​with:

?!code:csharp...

Gustaf Lindqvist: Nov 30, 4:38pm

Why no generic OrderedDictionary?

Check​http://www.codeproject.com/KB/recip​es/GenericOrderedDictionary.aspx?d...

Gabrielk: Nov 27, 6:57am

WhatIsMyIP.com

http://www.thesysteminfo.com is​another good alternate to​whatismp.com... I...

Kripz: Nov 26, 8:51pm

Girls, please don't get breast implants

Actually I think it's sweet when a​man loves a woman whether she's big​or n...

218.186.12.228: Nov 26, 9:40am

Generated in about 0.317s.

(Used 8 db queries)

mobile phone