note 20797 added to ref.session
| From: | andreas dot schempp at gmx dot ch | Date: | Tue, 16 Apr 2002 16:19:34 +0000 |
| Subject: | note 20797 added to ref.session | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-29439@lists.php.net to get a copy of this message | ||
If you use session_trans_sid, the sessionid will not be transmitted if you use a meta refres
(echo "<META HTTP-EQUIV=\"Refresh\"
CONTENT=\"3;URL=index.php\">";)
this will forward you to index.php after 3 seconds, but it will not transmit your session id
use this:
echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"3;URL=index.php?PHPSESSID="
.session_id() ."\">";
replace PHPSESSID with your php session name (session_name)
--
http://www.php.net/manual/en/ref.session.php
http://master.php.net/manage/user-notes.php?action=edit+20797
http://master.php.net/manage/user-notes.php?action=delete+20797
http://master.php.net/manage/user-notes.php?action=reject+20797