note 61294 added to ref.session
| From: | powerfull_king at hotmail dot com | Date: | Mon, 30 Jan 2006 17:32:32 +0000 |
| Subject: | note 61294 added to ref.session | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-102737@lists.php.net to get a copy of this message | ||
Hi everyone,
I am using sessions on my web application. I have tried with a simple code:
<?php
//session1.php
session_start();
$_SESSION[product1] = "Sonic Screwdriver";
$_SESSION[product2] = "HAL 2000";
echo "The products have been registered.";
?>
And call the session's variables from another page:
<?php
//session2.php
session_start();
echo "Your chosen products are:";
echo "<ul><li>$_SESSION[product1]
<li>$_SESSION[product2]\n</ul>\n";
?>
I uploaded these 2 files on my website and they work fine, but they don't work at home (my
production testing server).
Is there any thing I need to do in the php.ini?
Thanks.
----
Server IP: 85.116.0.130
Probable Submitter: 82.46.168.186
----
Manual Page -- http://www.php.net/manual/en/ref.session.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+61294
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61294&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61294&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61294&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61294&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61294&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61294&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61294&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+61294&report=yes
Search -- http://master.php.net/manage/user-notes.php