Re: Retrieve all SESSION variables.

From: Date: Fri, 25 May 2007 19:44:42 +0000
Subject: Re: Retrieve all SESSION variables.
References: 1 2 3  Groups: php.windows 
Request: Send a blank email to php-windows+get-27979@lists.php.net to get a copy of this message
Alf Stockton wrote:
Stut wrote:
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?
Try sysadmin wants to know who is doing what.
Tell "sysadmin" to consider what he actually wants to know and whether there is a better way to get that information. Reading the raw sessions rarely gives you information you couldn't get from server logs or a little added logging in the app. -Stut

« previous php.windows (#27979) next »