Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Session disappearing


syphenologist

Recommended Posts

Posted

Hi,

 

When clicking on any links (other than category/product links) on my site after adding something to the cart, I lose what is in the cart.

 

I have checked the admin/includes/configure.php and includes/configure.php everything seems to be right. It may be a problem with the STS mod I have installed but I dont have a clue where to start looking.

 

Can someone please point me in the right direction.

 

 

Here is My Website

 

Thank you...

Posted

Off hand, it looks like the links that don't work are generated by JavaScript, and they don't have the session ID as part of the link.

 

I don't know if there's a way to pass the session ID to JavaScript or not?

:unsure:

 

The JavaScript doesn't look all that difficult to rewrite as PHP to me.

 

Or maybe incorporate them into osC as banners (I've never done that)?

:unsure:

 

Just tossing out ideas...

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

The links that don't function are flash buttons... Although very nice, they are hard-coded. Also, the My Account flash button has been hard coded with an osCsid picked up in error. This will cause you problems down the road.

 

Looks like you've hard coded the links in the footer, as well. Yes? They are not carrying over my session ID either.

 

jon

It's all just ones and zeros....

Posted

Good catch, Jon.

 

You win a beer!

 

c(_)

 

(Hope you're a left handed drinker, I forgot how to do the right-hand cup! :blush: )

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

I have got the flash working with session ids I will post the code when I clean it up a bit.

 

the bottom links are now working also but for the last 2 hours I have been trying to get the links on the right side pointing to a product to use the SID.

 

Theoretically it should be the same procedure as the bottom links...

Posted
I have got the flash working with session ids I will post the code when I clean it up a bit.

 

the bottom links are now working also but for the last 2 hours I have been trying to get the links on the right side pointing to a product to use the SID.

 

Theoretically it should be the same procedure as the bottom links...

 

 

Stoooooooopid me swap "?" for "&" and its all working

Posted

Have my beer, you deserve it for staying up so late! ell done! Post your code so others can benefit :)

 

c(_)

It's all just ones and zeros....

Archived

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

×
×
  • Create New...