$_SESSION[''] variable not get passed

From: Date: Mon, 10 Nov 2003 11:47:11 +0000
Subject: $_SESSION[''] variable not get passed
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-169019@lists.php.net to get a copy of this message
Hi, I have apache, php 4.1.2 running on windows machine. The following are the seetings related to sessions in php.ini file register_globals =off session.autostart=1 session.use cookies=0 session.use_trans_sid=1 Now i have the following code in my default.php <html> <head> test</head> <body> <form name=form1 method=post action=frm2.php> <?php session_start(); $_SESSION['mytest']="value"; ?> </form> </body> </html> frm2.php <html> <head>session value</head> <body> <form name=frm2> <?php if (isset($_SESSION['mytest'])) echo "set<BR>; echo "the session value is ". $_SESSION['mytest'] ."<br>"; ?> </form> </body> </html> Now the session_id get passwd across forms but the session variable does not get passwed. Any guess what is the problem. -vimala/.

« previous php.general (#169019) next »