News for hackers. Stuff that matters.
Re:Living Without Sessions by lisp_padawan on Monday October 06, 2008 @03:13PM (#325208)
an interesting read but one thing I didn't understand, how is one meant to save the plaintext username & password client side (so as to be able to send them with each request) without putting them in a cookie or requiring that the user's browser is set to 'remember this password' - anyone got any ideas?
Re:Living Without Sessions by DougBTX on Monday October 06, 2008 @04:40PM (#325277)
In theory by using a cookie which can be verified by any server, but which can only be generated with the user's password (which is never stored in clear text).

There is an article here, http://www.lightbluetouchpaper.org/2008/05/16/hardened-state... but the PDF link seems dead.

Re:Living Without Sessions by mtts on Monday October 06, 2008 @03:23PM (#325216)
I think the point is not that no session state at all should be stored client side, but that most session state should not be.
Re:Living Without Sessions by alan on Monday October 06, 2008 @03:39PM (#325234)
Actually, Peej is a REST fan. He's saying that if there's session state it should be on the client side. There should be none on the server side.
Re:Living Without Sessions by briansmith on Monday October 06, 2008 @04:53PM (#325289)
Browsers have that functionality built in as long as you are using RFC 2617 authentication.
Re:Living Without Sessions by newt0311 on Monday October 06, 2008 @05:49PM (#325348)
In theory. What about in practice?
Re:Living Without Sessions by eggnet on Monday October 06, 2008 @08:07PM (#325478)
In my experience, the browser doesn't reliably send the username and password with each request so you get a bunch of re-queries. Cookies don't have that problem, they're always sent.

At least, that's what I saw on the intranet site I built, switched to authenticating with a login page and cookies instead because of it.

Re:Living Without Sessions by shutter on Monday October 06, 2008 @03:27PM (#325221)
That's authentication/authorization info; it should/must be stored on the client.