Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Session only works with cart links


dogznbonz

Recommended Posts

Posted

I have a situation with a site that has really got me confused. I'm using STS template and I have several sites that work fine. This one particular site will only carry session ids on the cart links that oscommerce has by default, but not the links I hand code.

 

the site I'm talking about is http://www.expressionswholesale.com

 

The rollover links don't carry sessions neither do the text links I have coded

 

Please don't try to email me at the site expressionswholesale.com

 

Any help will be great! :huh:

 

Thanks!

James

Tiger Team Solutions, LLC

http://www.bestwebsitedevelopment.com

  • 2 weeks later...
Posted

Hi, If you solve this problem please post or contact me.

Posted
I have a situation with a site that has really got me confused. I'm using STS template and I have several sites that work fine. This one particular site will only carry session ids on the cart links that oscommerce has by default, but not the links I hand code.

 

the site I'm talking about is http://www.expressionswholesale.com

 

The rollover links don't carry sessions neither do the text links I have coded

 

Please don't try to email me at the site expressionswholesale.com

 

Any help will be great!  :huh:

 

Thanks!

 

and how exactly do you code your custom links ?

Treasurer MFC

Posted

I figured out what the solution to this problem is. I have several sites that are working and a couple that were not. I figured out that the ones that were not working are with a different hosting company.

 

 

The way I fixed is I added some code to the includes/application_top.php as well as the application_bottom.php

 

The next thing I did was add "?$sid" without the quotes to the end of each link that was not passing session ids. For example index.php would have to be index.php?$sid

 

Everything is now working great.

 

If you would like the two files includes/application_top.php as well as the application_bottom.php let me know and I'll be happy to e-mail them to you. :thumbsup:

James

Tiger Team Solutions, LLC

http://www.bestwebsitedevelopment.com

Posted
I figured out what the solution to this problem is. I have several sites that are working and a couple that were not. I figured out that the ones that were not working are with a different hosting company.

The way I fixed is I added some code to the includes/application_top.php as well as the application_bottom.php

 

The next thing I did was add "?$sid" without the quotes to the end of each link that was not passing session ids. For example index.php would have to be index.php?$sid

 

Everything is now working great.

 

If you would like the two files includes/application_top.php as well as the application_bottom.php let me know and I'll be happy to e-mail them to you.  :thumbsup:

 

all you need to do is use the tep_href_link() function like the default osc links do.

Treasurer MFC

Posted
all you need to do is use the tep_href_link() function like the default osc links do.

 

This worked like a charm for me. If anyone knows of a disadvantage to doing this please post.

Archived

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

×
×
  • Create New...