note 103052 added to features.sessions
| From: | madhouse-network at hotmail dot com | Date: | Tue, 22 Mar 2011 18:46:23 +0000 |
| Subject: | note 103052 added to features.sessions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-178106@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/features.sessions.php
Edit -- https://master.php.net/note/edit/103052
Del: integrated -- https://master.php.net/note/delete/103052/integrated
Del: useless -- https://master.php.net/note/delete/103052/useless
Del: bad code -- https://master.php.net/note/delete/103052/bad+code
Del: spam -- https://master.php.net/note/delete/103052/spam
Del: non-english -- https://master.php.net/note/delete/103052/non-english
Del: in docs -- https://master.php.net/note/delete/103052/in+docs
Del: other reasons-- https://master.php.net/note/delete/103052
Reject -- https://master.php.net/note/reject/103052
Search -- https://master.php.net/manage/user-notes.php