[PHP] $_SESSION[''] variable not get passed

2003-11-10 Thread S.P.Vimala
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
headsession value/head
body
form name=frm2
?php if (isset($_SESSION['mytest']))
  echo setBR;
  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/.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] $_SESSION[''] variable not get passed

2003-11-10 Thread Rob Burris
S.P.Vimala wrote:

   Now the session_id get passwd across forms but the session
variable does not get passwed.
   Any guess what is the problem.

-vimala/.

 

You need to call session_start() on frm2.php to resume the session

http://us2.php.net/manual/en/function.session-start.php

--
[EMAIL PROTECTED]
http://www.phpexamples.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php