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

Jeff Sapp jasapp at gmail.com
Tue May 9 15:08:54 CDT 2006


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,
~jeff

On 5/9/06, Jonathon McKitrick <jcm at freebsd-uk.eu.org> wrote:
> I'd like to do a simple login form that protects an entire directory of files.
> When the login is correct, redirect to the home page under that directory.
> When it is not, redirect back to the login page.
>
> Simple, right?  Well, in php it is.  But in araneida it seems I have to set up
> a special handler, check for the file being asked for, and react accordingly.
> And I still can't seem to get the hang of the redirecting compared to php.
>
> Are there any docs or examples on how to do this?
>
> 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