note 19062 added to function.session-id
| From: | nospam at dousa dot cz | Date: | Thu, 14 Feb 2002 15:54:52 +0000 |
| Subject: | note 19062 added to function.session-id | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-26611@lists.php.net to get a copy of this message | ||
Be careful with SID, it's defined by the first session_start() (session_register()) call in the
script. This won't work:
session_start();
session_destroy();
..
session_start();
..
<FORM ACTION="this.php?<?=SID?>>
Do this instead:
<FORM ACTION="this.php?<?=session_name()."=".session_id()?>>
--
http://www.php.net/manual/en/function.session-id.php
http://master.php.net/manage/user-notes.php?action=edit+19062
http://master.php.net/manage/user-notes.php?action=delete+19062
http://master.php.net/manage/user-notes.php?action=reject+19062