adamski Posted January 23, 2004 Share Posted January 23, 2004 I'm having problems accessing session variables that have been registered on another area of the site i'm developing. What happens is, the site is made up of various sections, the store being one of the sections. A user can log in through one of the other sections on the site, and some session variables are registered. When they transfer to the store I am unable to fetch the previous session variables from the login process. eg - in hacking the oscommerce code, i'm trying to just display user id for example by print "Member ID: " . $_SESSION["MEMBERSESSION"]["user_id"]; Anyone had any experience in this? Link to comment Share on other sites More sharing options...
adamski Posted January 27, 2004 Author Share Posted January 27, 2004 I have tried using the session_name function to set the current session to my other session eg: $name = session_name("MEMBERSESSION"); but the returned value is osCsid. after making the session_name call, i have checked the session name with an ini_get("session.name") statement and it comes out as "MEMBERSESSION" however none of the variables are accessible... a subsequent call to session_is_registered("MEMBERSESSION") returns false... would this be a problem with cookies and permissions in subfolders? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.