Re: Why are my session vars disappearing???
| From: | Carlos Fernando Scheidecker Antunes | Date: | Tue, 12 Dec 2000 13:45:44 +0000 |
| Subject: | Re: Why are my session vars disappearing??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-29880@lists.php.net to get a copy of this message | ||
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