note 103053 added to book.session
| From: | LeeHowarth at osu1 dot php dot net | Date: | Tue, 22 Mar 2011 18:48:01 +0000 |
| Subject: | note 103053 added to book.session | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-178107@lists.php.net to get a copy of this message | ||
I was quite intrigued with what i tested, php://memory is used for storing the loaded file in
quested and then on shutdown it will be purged... However i couldnt understand why when i put
$_SESSIONS in the memory that they wasn't flushed...
session_save_path(file_get_contents('php://memory', 'w+'));
session_start();
// echo session_id();
//$_SESSION['name'] = 'RememberMe';
var_dump(file_get_contents('php://memory'));
echo $_SESSION['name'];
so at first i was just printing the session_id and it was coming back the same everytime so then i
uncommented and defined $_SESSION['name'] ran the page a couple of times then commented it
out, the var_dump shows no data saved which is quite confusing as no errors are thrown for it to be
saved...
Invisible PHP Sessions?
----
Server IP: 69.147.83.197
Probable Submitter: 89.241.197.238
----
Manual Page -- http://www.php.net/manual/en/book.session.php
Edit -- https://master.php.net/note/edit/103053
Del: integrated -- https://master.php.net/note/delete/103053/integrated
Del: useless -- https://master.php.net/note/delete/103053/useless
Del: bad code -- https://master.php.net/note/delete/103053/bad+code
Del: spam -- https://master.php.net/note/delete/103053/spam
Del: non-english -- https://master.php.net/note/delete/103053/non-english
Del: in docs -- https://master.php.net/note/delete/103053/in+docs
Del: other reasons-- https://master.php.net/note/delete/103053
Reject -- https://master.php.net/note/reject/103053
Search -- https://master.php.net/manage/user-notes.php