[Lispweb] How to do this simple php trick with araneida?

Richard Newman r.newman at reading.ac.uk
Thu May 11 10:33:33 CDT 2006


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
> lispweb at red-bean.com
> http://www.red-bean.com/mailman/listinfo/lispweb




More information about the lispweb mailing list