Re: [PHP] Sessions NOT working - somebody please help me!
U¿ytkownik "Jason Wong" <[EMAIL PROTECTED]> napisa³ w wiadomo¶ci news:[EMAIL PROTECTED] > On Saturday 28 August 2004 18:52, gregosh wrote: > > Sorry for posting this problem again but it's been really driving me crazy. > > I've reinstalled Apache and PHP for the 5th time and the result is still > > the same - sessions work only when using click link. > > When using header("location: b.php"); the session information is lost and a > > new cookie is set in the temp dir. My work has been waiting for a week > > because of this problem and I can't go on with it. I'm out of ideas. What > > is going on?? > > 1) Use a fully qualified URL for the redirection > 2) session_write_close() before you redirect > 3) In future search the archives first, this type of problem has been asked > and answered many times before session_write_close() didn't help. After yet another reinstallation fully qualified URL seems to have started working. However it hadn't helped before - I'd tried it several times. So to be honest I still don't know why but it started working. Thanks Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Sessions NOT working - somebody please help me!
Sorry for posting this problem again but it's been really driving me crazy. I've reinstalled Apache and PHP for the 5th time and the result is still the same - sessions work only when using click link. When using header("location: b.php"); the session information is lost and a new cookie is set in the temp dir. My work has been waiting for a week because of this problem and I can't go on with it. I'm out of ideas. What is going on?? Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem with sessions
Yes, that indeed was a typo but only in my message above. It's not the problem with the script Uzytkownik "Andre Dubuc" <[EMAIL PROTECTED]> napisal w wiadomosci news:[EMAIL PROTECTED] > Hi, > > Looking at your code, I noticed that either you're missing the closing double > quote to close off the Location expression, or you're ending it early with a > double quote at http://";. > > Shouldn't it read: > > header("Location: http://' . $_SERVER['HTTP_HOST'] > ^ > . dirname($_SERVER['PHP_SELF']) > . '/b.php?'.SID'"); > ^^ > > Perhaps that's the problem. I'm no expert . . . > Hth, > Andre > > > On Friday 27 August 2004 07:47 am, gregosh wrote: > > > you sure the cookie is being set? try this > > > > > > header("Location: http://"; . $_SERVER['HTTP_HOST'] > > > . dirname($_SERVER['PHP_SELF']) > > > . '/b.php?'.SID); > > > > I had tried this before - no result. The cookie is set in the \temp dir > > where it is intended. And that's where the other cookie with new session is > > located too. This really is a strange problem. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem with sessions
> > you sure the cookie is being set? try this > > header("Location: http://"; . $_SERVER['HTTP_HOST'] > . dirname($_SERVER['PHP_SELF']) > . '/b.php?'.SID); I had tried this before - no result. The cookie is set in the \temp dir where it is intended. And that's where the other cookie with new session is located too. This really is a strange problem. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problem with sessions
I am using a 4.3.2. version of PHP on Apache 1.3 Win2k. Here's the problem I've come across - when I jump from a page a.php to b.php using http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php