Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Oscsid changes with every pageload for non cookie visitors


vritzka

Recommended Posts

Hello everyone,

 

does anybody have an idea why in my OSC 2.2 the oscsid changes on every pageload, if the customer does not have cookies actived?

 

For example:

 

?osCsid=aa653b346fcaaec113776106f2c29171

 

 

then next pageload it is:

 

?osCsid=ab3fdc9a4840d77407f5abe86bf53ff5

 

 

And so it doe not hold the shopping cart.

 

 

Customers allowing cookies are just fine.

 

 

Does anybody have an idea?

 

Thank you,

 

Kind regards,

Volker

Link to comment
Share on other sites

You must have something causing loss of session

 

Are you using file or mysql for sessions

 

Have you read this thread http://www.oscommerce.com/forums/topic/330479-what-is-the-oscsid-why-you-must-not-loose-it/

 

a link to the site would help too

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

1. Either session is being lost or

2. Your modified/customized code( assumed to be customized) has some non standard code that checks for some cookie vlaue for session and if not found creates a new session.In short your customized code is ont able to reuse existing session id.

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

  • 3 weeks later...

THank you guys for the replys.

 

Yes, I have the above mentioned post and made sure my links and forms etc. are right.

 

I am using mysl storage for sessions.

 

the url is www.clothes4u.com.au

 

I am now trying to find any code that removes the session and tries to create a new one, as explained by Satish.

 

 

Volker

Link to comment
Share on other sites

Your site is a hack waiting for a place to happen...

:huh:

 

Read this

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 >

Link to comment
Share on other sites

@@vritzka

made sure my links and forms etc

 

Your wrong, lots of your links are done wrong, correct them all, read the thread I linked to.

 

The basic test: disable cookies in your browser then visit your site, every single link on every page should have the sid attached, any link that does not is wrong.

 

ALL your javascript links are wrong (don't you know a good proportion of visitors wont have javascript? they can't use your site as is!!)

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Hi,

 

thanks again for the help.

 

@@germ

Your site is a hack waiting for a place to happen...

 

yes, in fact somebody just hacked in and managed to change the paypal receiver address. So a $40 payment got stolen. Does anyone know [email protected].? She has got my money now.

 

 

@@spooks

ALL your javascript links

 

Well, there is not one link wrong. Even the javascript ones use the tep_href_link(). Not sure which links you mean.

 

 

 

The initial problem still exist . If I switch off cookies the shop generates a nes osCsid on every pageload.

I will keep searching.

 

 

Volker

Link to comment
Share on other sites

  • 4 weeks later...

The most common cause is incorrect cookie settings in the config file.

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 >

Link to comment
Share on other sites

Hi,

 

so, problem fixed!

 

It was a tough cookie, but not a cookie issue ..... (zirp , zirp .. zirp).

 

 

After I could not find it myself, I put the job on elance.

 

2 contractors told me they could easily fix it .... and they gave up in dispair.

 

The 3rd contractor, a person from the USA, fixed it. After a weekend of sifting through the code.

 

He found that the code in catalog/includes/functions.php had been changed. He restored it to OSC standard, and it works now.

 

After this, the "Checkout without Account" was inactive. So I assume this contribution has caused the problem.

 

 

Volker

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...