note 36821 added to faq
| From: | skuns at arb dot ca dot gov | Date: | Thu, 23 Oct 2003 18:54:45 +0000 |
| Subject: | note 36821 added to faq | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-59182@lists.php.net to get a copy of this message | ||
I'm new to PHP. I've been playing with the latest download for windows and trying to
learn sessions. My problem is I can't access the session variables I created from another
script .
I have the default setting for the register globals value (off).
I start off by using the session_start(); command and
follow that by assigning some variables:
$_SESSION["sv_Sid"] = 'sometext';
When I try to acces the variable sv_Sid from another script,
it comes back blank.
I try to access it by using $_SESSION[sv_Sid].
Any ideas on how to set a session variable and then use it in another script. I can't find any
examples of this in the PHP documentation.
----
Manual Page -- http://www.php.net/manual/en/faq.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+36821
Delete -- http://master.php.net/manage/user-notes.php?action=delete+36821&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+36821&report=yes
Search -- http://master.php.net/manage/user-notes.php