Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New session each page?


outpost7

Recommended Posts

Posted

:oops:

 

OK, so I have designed a site, fit it around the OScommerce code and now that I have put other links on the page, I get a new session id each time I go to a new page, which will no allow me to add items to the cart because i have a new ID. Has anyone else run into this problem,

 

here is the code I used on the links I created:

 

<a href="<?php echo tep_href_link('default.php?cPath=2_18') ?>" class="initiative">

 

Once I have this session issue under control I think I have everything done..

Posted
OK, so I have designed a site, fit it around the OScommerce code and now that I have put other links on the page, I get a new session id each time I go to a new page, which will no allow me to add items to the cart because i have a new ID. Has anyone else run into this problem,

 

here is the code I used on the links I created:

 

<a href="<?php echo tep_href_link('default.php?cPath=2_18') ?>" class="initiative">

 

Once I have this session issue under control I think I have everything done..

 

The GET parameters used in the url are part of the second parameter to tep_href_link.

 

You should compare your code to a function call to tep_href_link used in the source code.

:heart:, osCommerce

Archived

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

×
×
  • Create New...