How can I retrieve session data from current open sessions on my web site, and display that data using PHP?
Thanks in advance for any help. 😃
Assuming that you already have the sessions set using php, you would call it like this:
session_start(); $var = $_SESSION['var']; echo "$var";
Do you mean your current session, or all sessions running?
If the former, just use print_r($_SESSION). If the latter, you'll have to open the files (look in php.ini for their location) and then parse and echo the contents.
I need to gather info from all current sessions that are running on the site.