Hi!
Thanks!
I have created sessions in a page that is no more visited, but still when i 
go through the other pages using session variables and use go back to 
another page that uses sessions i have the expiration message
Thanks

>From: "Boget, Chris" <[EMAIL PROTECTED]>
>To: "'kaab kaoutar'" <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
>Subject: RE: [PHP] session and back button
>Date: Tue, 22 May 2001 11:40:23 -0500
>
> > I'm using sessions and if the user hits the back button an
> > expiration page appears! how can i disable the back button ?
> > i tried window.history.forward(1) but it fails !
>
>Even more interesting is that when a user presses the back
>button all the way back to the page that initially started the
>session, a new session is started.  As such, all information
>previously stored will be lost.
>What I did to fix my problem (and I think it'll fix yours) is
>that I start the session on a page the user cannot go "back"
>to.  To do that, the only code in the file is:
>
><?
>
>   session_start();
>
>   header( "location: /home_page.php" );
>   exit();
>
>?>
>
>Chris

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-- 
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