note 50510 added to ref.session
| From: | juroh at juroh dot sk | Date: | Wed, 02 Mar 2005 10:04:17 +0000 |
| Subject: | note 50510 added to ref.session | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-85775@lists.php.net to get a copy of this message | ||
hi everybody,
I have a problem to send variable store in $_SESSION to another script on the same server (folder
)..
example :
<?php
session_start();
session_register('name');
$_SESSION['name'] = "peter";
echo $_SESSION['name'];
echo "<br><a href = \"t.php\">link</a><br>";
?>
this script store string "peter" to $_SESSION['name'] and print it. It's
working ... But when I click the link, there is nothing writen on page t.php ..
t.php source code :
<?php
session_start();
echo $_SESSION['name'];
?>
It doesn't work only if cookies are disabled in my browser (IE 6.0 ) ... if I allow cookies,
it's working normaly ...
I read in manual, that variables in $_SESSION array are stored on the server ... but it seems not
...
Could anybody help pls ? ... How it solve, if cookies are disable ... thanx a lot, JuroH
----
Manual Page -- http://www.php.net/manual/en/ref.session.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50510
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50510&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50510&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50510&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50510&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50510&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50510&report=yes
Search -- http://master.php.net/manage/user-notes.php