Re: php session not persisting
| From: | Jason Wong | Date: | Tue, 03 Jun 2003 07:42:09 +0000 |
| Subject: | Re: php session not persisting | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-149889@lists.php.net to get a copy of this message | ||
On Tuesday 03 June 2003 12:28, Eric D. wrote:
> I have two very simple php scripts and the second srcipt is not seeing the
> variables session_registered by the first script.
> I'm running the latest version of php. And have both "register_globals" and
> "track_vars" set to "ON".
It's best to state the specific version of PHP you're using rather than just
'latest' (as it could mean different things to different people at different
times).
> Well, the first script prints out the session var fine, but not the second
> one. What is wrong? Is there something else I overlooked? Thanks for your
> help!
If you're using PHP > 4.1.0 then you ought to be using $_SESSION for all your
session needs -- see manual for examples.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
I have a map of the United States. It's actual size. I spent last summer
folding it. People ask me where I live, and I say, "E6".
-- Steven Wright
*/