Jump to content

Retrieving session info


allex01

Recommended Posts

I have a site that uses sessions and in cookies it's stored as PHPSESSID

The session includes the the user info such as username and password. I'm trying to build an autologin feature so that when a user logs in to one script he's automatically logged in to the other.

 

I tried the following which obviously doesn't work

$user = $_SESSION['PHPSESSID'];

 

If i echo out $user nothing shows. How can retrieve the user info from PHPSESSID

 

Link to comment
https://forums.phpfreaks.com/topic/92013-retrieving-session-info/
Share on other sites

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.