[phplib] Session Management!!! From: Vivek Kumar Agrawal (vivek.agrawal <email protected>)
Date: 04/25/01

Hi,

Can you please help me.
I am not getting value of registered session variable.

Please let me know whether i have to change in the php.ini for that or I have to change in the following code.
Please go through the code.

Code of my first file (i.e. first.html ) is:

<HTML>
<BODY>
<form action="foo.php" method="Get">
    Name: <input type="text" name="username"><br>
    <input type="submit">
</form>
      
</BODY>
</HTML>

and code of foo.php is

<?php
page_open(array("sess"=>"My_Session"));
$sess->register("first");
$first="Test";
page_close();
?>
<Html>
<body>
<a href="new.php">Click</a>
</body>
</html>

and i am unable to get value of $first variable on new.php and its code is :

<?php
echo $first;
?>

Any response in this direction is appreciated.

Regards,
Vivek

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>