Re: Retrieve all SESSION variables.

From: Date: Fri, 25 May 2007 15:50:27 +0000
Subject: Re: Retrieve all SESSION variables.
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-27976@lists.php.net to get a copy of this message
Alf Stockton wrote:
Is there a method whereby one can retrieve all php SESSION variables on a Windows server. I have tried:- <?php
    session_start();
    foreach($_SESSION as $key => $val)
        {
        echo $key . " : " . $val . "<br>";
          }
?> but this appears to only return current user variables.
Shocking that. You think maybe there's some security-related reasoning behind that? Seriously tho, if you really really really need to do this, and I can't think of a single good reason you would, you need to be looking at where PHP is storing the session data as it provides no way to access other users session data due to the aforementioned security-related reasoning. -Stut

« previous php.windows (#27976) next »