Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Working with session variables


geo0428

Recommended Posts

I?m new to session variables and the tep functions that support them. Once I register a variable how do I access it on another page.

 

For example I register the customer Id by the following statement:

tep_session_register('customer_id');

 

On another page I want to access the customer Id. How do I do that?

Example:

$customer_id = What?

Link to comment
Share on other sites

session_register('customer_id');

 

$customer_id is the variable hence you don't have to assign it to another variable as $customer_id = $customer_id.

 

session_unregister('customer_id');

Your online success is Paramount.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...