Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Use my own sessions


simonzebu

Recommended Posts

Posted

Hey Guys, I need to know how to transfer my own session variables around the whole site. My customers indicate what make, model and year of machine they have, and from then on they are only shown products relevant to their machine.

 

I had started doing this with passing parameters from page to page, but it would be a whole lot easier with a session variable or three.

 

When I set it up so that application_top.php looks for the session I have created in my own machine login snippet, it has disappeared. How do I get it to stay?

 

cheers

Posted
Hey Guys, I need to know how to transfer my own session variables around the whole site. My customers indicate what make, model and year of machine they have, and from then on they are only shown products relevant to their machine.

 

I had started doing this with passing parameters from page to page, but it would be a whole lot easier with a session variable or three.

 

When I set it up so that application_top.php looks for the session I have created in my own machine login snippet, it has disappeared. How do I get it to stay?

 

look in application_top for some examples of this. there are calls to a functions called tep_session_register(), tep_session_is_registered(), etc. the first function marks the variable as being a session variable. once registered, the variable will be available to all pages (that include application_top) from that point on. using the existing system would make things easier.

Posted
look in application_top for some examples of this. there are calls to a functions called tep_session_register(), tep_session_is_registered(), etc. the first function marks the variable as being a session variable. once registered, the variable will be available to all pages (that include application_top) from that point on. using the existing system would make things easier.

 

I am trying to do the same thing with adding some variables to the session value and I simply can't find where the session value is put together. Once I find that then I can make short work of adding extra variables before logging in so that they track with the item. After logging it then it is simpler to just add the extra variables to the card DB but before logging in then I have to use the session variable. I see in session.php where it is inserted in the db and where it is refreshed but where does the value itself come from?

 

Any help would be appreciated.

Archived

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

×
×
  • Create New...