note 111534 deleted from function.session-decode by danbrown
| From: | danbrown@php.net | Date: | Mon, 04 Mar 2013 17:42:51 +0000 |
| Subject: | note 111534 deleted from function.session-decode by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-193811@lists.php.net to get a copy of this message | ||
Note Submitter: Alexandru Eftimie[dot]alexandru[at]gmail
----
<?php
function unserializesession($data)
{
$tmp = $_SESSION;
session_decode($data);
$data = $_SESSION;
$_SESSION = $tmp;
return $data;
}
?>
This should be the most stable ( i think )