Jump to content



Latest News: (loading..)

Session problem - return to shop logged out


This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1   Jackatkewsound

Jackatkewsound
  • Members
  • 7 posts

Posted 11 October 2011 - 12:10 PM

Okay, forget about the paypal, it's nothing to do with that..

If I go from my shop to paypal, and just click cancel and return to shop, I am logged out, so it's obviously an internal oscommerce setting, but I have no idea what.   Using v2.3.1.   My sister who has used oscommerce for years and is running 2.2 and is very computer literate has no idea what wrong, so if someone could please post an abc...   I am totally new to computer shopping carts so please treat me like a total novice.  Thank you.

Jack.

#2   tomcat4x

tomcat4x
  • Members
  • 20 posts

Posted 11 October 2011 - 01:37 PM

Hi,

may be with your http (cookie) settings in catalog/includes/configure.php is something wrong.

Then osCOmmerce cant use cookies and send the sessionId with every URL. But that dont work when you leave the page to paypal ant then comming back. So you get a new session id and the cart is empty.

Show us your configure.php. But only the first lines till DIR_WS_HTTPS_CATALOG. We dont need your database password [img]http://forums.oscommerce.com//public/style_emoticons/default/whistling.gif[/img])

Frank

Edited by tomcat4x, 11 October 2011 - 01:39 PM.


#3   p2409

p2409
  • Members
  • 52 posts

Posted 11 October 2011 - 02:39 PM

You can't link back to a session from another non-osc page unless you retain the session id (ie. code the interface). A simple link like "www.yoursite.com" will always lose your session, forcing you to logon again.
Fixing this requires coding an interface between the two sites: not trivial, but Paypal does let you do it...you need to check the Paypal API documentation for how to do this - warning, it can be complicated to get going.
I don't understand why tomcat4x needs the configure.php file. Don't send it till you know why.

Edited by p2409, 11 October 2011 - 02:40 PM.

OSC User Definitions
"I can add modules to OSC"                     =   I can search, cut and paste. But not well, or I wouldn't be here.
"I start my posting with 'works like a charm'  =   I'm letting you down gently, nothing works and I have no idea why
"I finish postings with "plzzzz....hlp"        =   My installation is buggered and I know I'm going to have to pay someone, but I really, really don't want to.

#4   tomcat4x

tomcat4x
  • Members
  • 20 posts

Posted 11 October 2011 - 06:57 PM

View Postp2409, on 11 October 2011 - 02:39 PM, said:

I don't understand why tomcat4x needs the configure.php file. Don't send it till you know why.

I asked him for the first lines of the first lines of the configure.php obviously has problems with setting the cookies.

So i don't understand you, what's the problem by sending the first lines of his configure.php.

If he fix the problem with paypal, what is with the next payment module?

Why shold he do some complicated things, like share a session between two servers, when the problem may be solved for all payment modules in his own configuration?

#5   MGLogos

MGLogos
  • Members
  • 1 posts

Posted 19 April 2012 - 07:09 AM

Try this solution:

add to includes/configure.php this line:

ini_set('session.use_only_cookies', false);

This works for me