note 84287 added to book.session
| From: | mike at basementideas dot com | Date: | Tue, 08 Jul 2008 00:05:39 +0000 |
| Subject: | note 84287 added to book.session | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-141253@lists.php.net to get a copy of this message | ||
The note about an included file not being able to access the sessions is not true. You just have to
do a session_start(); in the included file.
This is what drove me here today, because I was noticing the same thing. But I tried the above on a
whim and it works fine. You wouldn't think you'd need to start a session twice, but I
guess the scripts are looked on as separate in that regard.
Mike
----
Server IP: 64.71.164.2
Probable Submitter: 65.32.205.59
----
Manual Page -- http://www.php.net/manual/en/book.session.php
Edit -- https://master.php.net/note/edit/84287
Del: integrated -- https://master.php.net/note/delete/84287/integrated
Del: useless -- https://master.php.net/note/delete/84287/useless
Del: bad code -- https://master.php.net/note/delete/84287/bad+code
Del: spam -- https://master.php.net/note/delete/84287/spam
Del: non-english -- https://master.php.net/note/delete/84287/non-english
Del: in docs -- https://master.php.net/note/delete/84287/in+docs
Del: other reasons-- https://master.php.net/note/delete/84287
Reject -- https://master.php.net/note/reject/84287
Search -- https://master.php.net/manage/user-notes.php