|
|
Posted by Matthew on 11/19/07 19:25
Hi,
!!I'm A Newbie Alert!!
My server runs PHP version 4.4.3.
I'm successfully creating a session and can set and retrieve my own
session variables.
As far as I can tell the $_SESSION['uid'] variable should be created
automatically when session_start() is called. When I retrieve this
variable however it is empty.
Is this because -- manual -- "PHP directive register_globals went from ON
to OFF in PHP » 4.2.0." ??
If so: How do I turn register_globals on, do I just edit the .htaccess
file and add the line below (exactly as shown?
php_flag register_globals on
If not, any ideas why $_SESSION['uid'] does not have a value?
Note the value of $_SESSION['cookie'] is also empty, isn't that also
supposed to be created and sent to the browser automatically by
session_start() ?? --My browser does not receive a cookie either?
In a muddle, regards, etc..
Navigation:
[Reply to this message]
|