RE: Sessions, sessions, sessions...
| From: | Bradley Goldsmith | Date: | Tue, 02 Oct 2001 02:27:25 +0000 |
| Subject: | RE: Sessions, sessions, sessions... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-69522@lists.php.net to get a copy of this message | ||
Nope.
Still doesn't work.
I still have to do a refresh on the page manually...
Any other ideas?
Thanks,
Brad
-----Original Message-----
From: Wayne K [mailto:grade_a_net@hotmail.com]
Sent: Tuesday, 2 October 2001 11:38 AM
To: Bradley Goldsmith
Subject: Re: Sessions, sessions, sessions...
register your sessions then reload the page with a
header("location:stuff.here") if session is registered then omit the
header()
----- Original Message -----
From: "Bradley Goldsmith" <brad@massive.com.au>
Newsgroups: php.general
To: <php-general@lists.php.net>
Sent: Monday, October 01, 2001 9:13 PM
Subject: Sessions, sessions, sessions...
| Hi,
|
| I am using php4 (great) under win32 apache (not so great) ...
|
| I am trying to regsiter two session variables. When the page is
| first displayed, the variables are registered thus:
|
| session_register("Sheet");
| $HTTP_SESSION_VARS["Sheet"]=serialize($Sheet);
|
| //store time offset session
| session_register("offset");
| $HTTP_SESSION_VARS["offset"]=$offset;
|
| I had some checking code in there before and the registers returned
| true.
|
| The problem is that on the first time around the variables do not
| seem to register. However, if the page loads and then I do a refresh by
| clicking on the toolbar - it all seems to work ok.
|
| Any ideas on how I can get the vars to stick first time around?
|
| Cheers,
| Brad
|
|