note 27596 rejected from function.session-decode by didou
| From: | didou@php.net | Date: | Sun, 18 May 2003 03:25:09 +0000 |
| Subject: | note 27596 rejected from function.session-decode by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-48372@lists.php.net to get a copy of this message | ||
Note Submitter: mthornton of wei dot cc
----
Session_decode() fails on every machine i've tried (both windows and linux). Seems to have a
memory problem.
But if it did work, this should also work to decode a session string:
function get_session_decode($sessStr)
{
if ($sessStr) {
session_decode($sessStr);
unset($sessStr);
$vars = get_defined_vars();
return $vars;
} //if
} //func
this should return an array of all the session variables. You may also want to do a
unset($vars['this']) if you are calling this in a class. Be sure to unset($vars[key]) any
variables you dont want returned.
Im pretty sure this would work, but since session_decode keeps crashin my scripts, i many never
know... :/