The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
Session Diagnostics
Posted by: Stephen | September 19, 2007 @ 6:32pm
Revision 2 - Original post on September 19, 2007 @ 6:17pm
PHP Code
[
Download
]
<PRE> <?php error_reporting(2047); session_start(); $_SESSION['var'] = "We just set a session variable!"; $_SESSION['color'] = "My favorite color is green."; echo "Session Cookie Parameters\n"; print_r(session_get_cookie_params()); echo "Session id:: ".(session_id())." ::\n\n"; echo "Cookie Information\n"; print_r($_COOKIE); echo "Session Information\n"; print_r($_SESSION); ?> </PRE>
Syntax Highlighting
[
Open in new window
]
Author Comments
This is a simple debugging/diagnostic script for sessions.
Rating
4.45 / 8
485 Votes