Jump to content


Photo

frustrating session problem in Opera/Internet explorer on Mac


  • Please log in to reply
3 replies to this topic

#1 nawtwrong

nawtwrong
  • Members
  • Pip
  • Newbie
  • 6 posts

Posted 13 May 2006 - 03:14 PM

I have an e-commerce script that works perfectly in internet explorer/firefox/netscape on any windows OS but when I use the script in Opera on windows (or in IE/Safari on a Mac I've been told) the sessions don't work.

What should happen is 5 sessions are set at the login stage:

$_SESSION['login'];
$_SESSION['products'];
$_SESSION['total'];
$_SESSION['product_codes'];
$_SESSION['country_code'];

These are set on a 'shared' secure server (https://shared_secur...space/mydomain/). Don't know if it's anything to do with this?

Like I say in internet explorer/firefox/netscape the sessions carry over from the login page right through to the order added page with no problems. In Opera/safari etc something wierd happens, sometimes they work, other times they are not set at all and on the rare occasions they do work, when you refresh a page they disappear! This happens randomly, there is no pattern to it or anything I can spot that should be causing it.

I have tried clearing the cache of the browser to see if that was it, but it still happens.

Has anyone has similar experiences or can offer any helpful advice, I'd really appreciate it because it's driving me mad.

Thanks in advance for any help.

#2 Mute

Mute
  • Members
  • PipPip
  • Member
  • 12 posts

Posted 18 October 2007 - 04:27 AM

I have a very similar problem where sessions are set perfectly in all cases except on the Mac platform.

Does anyone have any ideas?

#3 cooldude832

cooldude832
  • Members
  • PipPipPip
  • Advanced Member
  • 4,793 posts

Posted 18 October 2007 - 04:52 AM

are you losing all session data or some?  Most likely the case is in the browser's way of supplying the sessionID to the server.  Best bet to solve this is to have the session id stored as a cookie on the users computer and then use that to restore the session value.  Its probably a couple of lines, but I wouldn't know if it would help. 
so basically you have
<?php
if(the cookie not set){
///set cookie= sesionid();
}
else{
//set sessionid = cooke;
}
?>
the page
http://us2.php.net/m....session-id.php
should help explain.  I think this will help if the issue is as I suspect with the browser not keeping its session ID
I am willing to help a person that is willing to be helped. 
I admit I don't have all the answers, but I do have all the answer keys.

Current Project:
http://www.scriptbetter.net

#4 cooldude832

cooldude832
  • Members
  • PipPipPip
  • Advanced Member
  • 4,793 posts

Posted 19 October 2007 - 12:03 AM

any results on this one cause I am curious
I am willing to help a person that is willing to be helped. 
I admit I don't have all the answers, but I do have all the answer keys.

Current Project:
http://www.scriptbetter.net




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users