or
$result = eval("return \$_SESSION;");
pr($result);
On Apr 4, 11:49 am, "jyrgen" <[EMAIL PROTECTED]> wrote:
> here's a solution i found on php.net.
>
> it's definitely not smart, but works ok.
>
> $temp = mysql_query('SELECT * FROM sessions');
> while ($row = mysql_fetch_array($temp)){
> $variables = array( );
> $a = preg_split( "/(\w+)\|/", $row['data'], -1,
> PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE );
> for( $i = 0; $i < count( $a ); $i = $i+2 ) {
> $variables[$a[$i]] = unserialize( $a[$i+1] );
> }
> }
>
> pr($variables);
>
> cheers, jyrgen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---