in reply to Re^3: Need help with redirect
in thread Need help with redirect

a meta refresh would not work. I am using the SSI to protect certain pages. This is the first time I have tried to password protect a member's section of my site. Using a meta refresh can be easly bypassedby hitting the escape key fast enough. Using the SSI as the frisst thing called should allow the redirect to happen before the protected content is loaded.

Replies are listed 'Best First'.
Re^5: Need help with redirect
by almut (Canon) on Jun 02, 2009 at 02:39 UTC
    a meta refresh would not work.

    You'd have to send out the real content only in case the cookie is ok. Otherwise, redirect. If the users stop the redirect, they'll just get nothing... no content and no login page.

    Using the SSI as the first thing called should allow the redirect to happen before the protected content is loaded.

    As I said, I'm no SSI expert, but some quick googling seems to confirm my understanding (that it shouldn't).  But maybe someone else knows the trick to make it work...