Display a session file
Posted on 2003-03-20
In the development of my application, I have created a cool on/off function display for the administrative users of the site to be able to view detailed debug information in an effort to assist in the issue resolution. Having said this, I am wnating a simple way to show all current Session Variables which are set in the current session. These session variables are set when the user logs in and remain in effect till the user logs off.
My attempts have included the following;
$f = file_get_contents( "/tmp/".session_id() );
Warning: file_get_contents(/tmp/9a0553cdfcc15ff7f1e4bdf7722b282b) [function.file-get-contents]: failed to create stream: No such file or directory in /HIDDEN_VIEW/public_html/HIDDEN_VIEW/index.php on line 17
Warning: main(/tmp/9a0553cdfcc15ff7f1e4bdf7722b282b) [function.main]: failed to create stream: No such file or directory in /HIDDEN_VIEW/public_html/HIDDEN_VIEW/index.php on line 23
Warning: main() [function.main]: Failed opening '/tmp/9a0553cdfcc15ff7f1e4bdf7722b282b' for inclusion (include_path='.:') in /HIDDEN_VIEW/public_html/HIDDEN_VIEW/index.php on line 23
Help... what will correct this. I am the physical server owner in my facility. I mention this in case there is a config parameter that is needing to change.
Thanks in advance for your help...