On Wed, 27 Mar 2002, darren chamberlain wrote:

> If you are using a PerlTransHandler anyway, you can have one that
> sends the client to a particular page if a cookie is not set:
> 
>   (a) Client requests /foo.html
>   (b) TransHandler sees that cookie is not set, does an internal
>       redirect to /js-set-cookie.html, which does some (client
>       size) js magic and transparantly redirects to the
>       cookie-setting page, which sets the cookie and does its
>       own redirect.
>   (c) TransHandler gets this request as well (it was an external
>       redirect instigated by the client-side javascript), sees
>       that the cookie it is looking for is set, and does the 
>       appropriate redirecting (to the right sized page).

Better take care to avoid an infinite loop for clients who refuse 
cookies.

Steve

===============================================
Stephen M. Gray
www.frontiermedia.net


Reply via email to