Re: Why are my session vars disappearing???

From: Date: Tue, 12 Dec 2000 14:25:08 +0000
Subject: Re: Why are my session vars disappearing???
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-29884@lists.php.net to get a copy of this message
But I want to keep that redirection in the same session. I got welcome page, and from that page I have page, that check for authorization. If user is authorized to enter, he's redirected to another page. I don't want to aply apache's directory limits, 'cause I want to keep the welcome page available to everyone. Is there any way how to redirect the browser, but stay in the same session? Carlos Fernando Scheidecker Antunes wrote: > Dezider, > > You have to call StartSession(); whenever you redirect to a new > page/script. > > For instance : > > Supose you have scrpt1.php4 that starts a session and register some > variables. This script has a link to scrpt2.php4. At the begining of > scrpt2.php4 you have to make a call to start session() again. > > regards, > > Carlos Fernando Scheidecker Antunes. > > ----- Original Message ----- > From: "Dezider Góra" <gora@wittmann.sk> > To: "PHP General" <php-general@lists.php.net> > Sent: Tuesday, December 12, 2000 10:50 AM > Subject: [PHP] Why are my session vars disappearing??? > > Just one question, > > when I use: > > header( 'location: whatever ' ) > > does it start a new session or what? I have properly registered session > vars and after redirecting to new location all disappear. What should I > do to keep 'em alive? > > tia, > Dezider > > ---------------------------------------------------------------------------- > ---- > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#29884) next »