This is such an annoying thing.  And it seems as though no one is
willing to cover it in any manual, book or tutorial.  Apparently the
problem is that PHP sessions automatically set the no-cache header.  So
at the top of each script, after the session_start() function set
header("Cache-Control: public");  That will the trick.  Actually it may
work too well but at least your visitors won't get discouraged by that
annoying message.

--
Kevin Stone
[EMAIL PROTECTED]

> -----Original Message-----
> From: Michael: Dave II, Electric Boogaloo
[mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 29, 2002 3:47 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Session Help
> 
> I'm having a little problem with my sessions on a website I'm
programming
> for.  After a user logs in, if that user follows a link, the variable
> information is being passed correctly, but when they hit "Back",
Internet
> Explorer gives a "Warning This Page Has Expired" error.  Hitting
refresh
> does fix this, but "Forward/Back" is such a common procedure that I'd
like
> for this to work smoothly.  Could someone tell me what I'm doing wrong
> here?
> 
> Thanks in advance.
> 
> 
> Michael
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
[EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to