Re: How to do this simple php trick with araneida?
Richard Newman <[email protected]> Thu, 11 May 2006 08:33:33 -0700
| Newsgroups | gmane.lisp.web |
|---|---|
| Message-ID | <[email protected]> |
If all you're wanting to do is control access to resources, but make someone login only once in a given period, you should store some hashed value in a cookie. Compare this hashed value to some values stored on the server to decide if someone is authenticated. A session is a much heavier-weight concept than merely providing an authentication cookie. -R On 11 May 2006, at 8:20 AM, Jonathon McKitrick wrote: > On Tue, May 09, 2006 at 03:08:54PM -0500, Jeff Sapp wrote: > : I maybe wrong here, but I think it'll look something like this: > : > : (defmethod handle-request-response ((handler login-handler) > method request) > : ... do your login stuff, but don't send any headers ... > : (if (correct-loginp) > : (progn > : (request-send-headers request) > : ... display files ... ) > : (request-redirect request (link (login-handler-url))))) > : > : Hope this helps, > > Very helpful, actually. > > I can't find anything on sessions, though. Once they are logged > in, how do I > start a session? > > > Jonathon McKitrick > -- > My other computer is your Windows box. > > _______________________________________________ > lispweb mailing list > [email protected] > http://www.red-bean.com/mailman/listinfo/lispweb