Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Links without session id


Rubenbbt

Recommended Posts

Posted

On the homepage of my shop I've added some links to some of my products. I just added some urls without the session id like this:

 

http://www.bbt-us.com/product_info.php?products_id=28

http://www.bbt-us.com/product_info.php?products_id=30

 

Everytime when I click on these links, the session gets lost. How can I change these links to links with the session_id?

 

http://www.bbt-us.com/product_info.php?pro...72392f34f9515fe

 

See homepage: http://www.bbt-us.com

Posted

You have to use the tep_href_link function.

 

<a href="<?php tep_href_link('product_info.php', 'products_id=30');?>">Your Product</a>

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Posted

If you use that link, though, wihtout going throug the tep_href_link funciton, sessions will be dropped unless your browser accepts cookies.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Posted

I had to use the link:

<a href="<?php echo tep_href_link('product_info.php', 'products_id=13', 'NONSSL'); ?>">

Archived

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

×
×
  • Create New...