Re: How to do this simple php trick with araneida?

"Jeff Sapp" <[email protected]> Tue, 9 May 2006 15:08:54 -0500
Newsgroups gmane.lisp.web
Message-ID <[email protected]>
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 <[email protected]> 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
> [email protected]
> http://www.red-bean.com/mailman/listinfo/lispweb
>