Jump to content

[SOLVED] quick session question


aebstract

Recommended Posts

Is there a way to echo out all $_SESSION['']'s that are active? Example:

 

$_SESSION['var1'] = information;

$_SESSION['var2'] = information;

$_SESSION['var3'] = information;

$_SESSION['var4'] = information;

 

Is there a way to print out that my active session's are var1, var2, var3, var4 ?

Link to comment
https://forums.phpfreaks.com/topic/144778-solved-quick-session-question/
Share on other sites

Is there a way to echo out all $_SESSION['']'s that are active? Example:

 

$_SESSION['var1'] = information;

$_SESSION['var2'] = information;

$_SESSION['var3'] = information;

$_SESSION['var4'] = information;

 

Is there a way to print out that my active session's are var1, var2, var3, var4 ?

 

being that you have been on this forum for a while, I'm going to assume you are looking for something more complicated then using print_r() or array_keys()...what do you mean by 'active'?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.