Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Accessing External Session Variables


adamski

Recommended Posts

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

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

Archived

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

×
×
  • Create New...