There is a session problem with 4.1
If register_globals is ON, then use session_register().
If it's off, then use $_SESSION[name] = value; and the value will
automatically be registered.
What kind of session problem? I currently have register_globals set to on. I
am already using
Add ? session_start(); ?
At the top of each page, before anything else is done.
Jay
-Original Message-
From: Adam Douglas [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 3:15 PM
To: PHP-General (mailing list) (E-mail)
Subject: [PHP] Session Initially Does Work
Hi.
something else after the initial page everything works fine. I
require this
to work initially because if someone comes in directly using a
link certain
content will render a error message because the registered variable is not
present for some reason. Oh and yes the cookie to set the
I already have this setup. The session works just not on the initial page
after login.
Add ? session_start(); ?
At the top of each page, before anything else is done.
-Original Message-
From: Adam Douglas [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 3:15 PM
To:
something else after the initial page everything works fine. I
require this
to work initially because if someone comes in directly using a
link certain
content will render a error message because the registered
variable is not
present for some reason. Oh and yes the cookie to set
Well the cookie is set at the start of the PHP file that gets referenced
each time. I'm not setting any manual cookies just using the
default session
cookie set by PHP. Below is all the code I use for the session. Formatting
is kind of goofed up in e-mail but it's there. So even though the
That's correct, although the cookie will remain resident it
requires an
inital page change/refresh. However after looking at your
code I'm not
convinced that is the problem since the first page of a
session creation
should still be usable with the session as the session ID is
still
Alright that's good to hear. In a specific case that I'm having
this problem
the main PHP file is including file (content) that refers to
$_SESSION[nSID_PeopleID] in main. This value is vital in
rendering the page.
So it should be there right? Also about removing session_name(), how can I
There is a session problem with 4.1
If register_globals is ON, then use session_register().
If it's off, then use $_SESSION[name] = value; and the value will
automatically be registered.
---John Holmes...
-Original Message-
From: Adam Douglas [mailto:[EMAIL PROTECTED]]
Sent:
9 matches
Mail list logo