on 19/12/02 2:25 AM, Antti ([EMAIL PROTECTED]) wrote: > Neather this seem to work > > $_SESSION['some_variable']=$variable; > > nor this: > > $_SESSION['today']= date('Y-m-d h:m:s'); > > antti
What do you mean "don't work"... what are you trying to do? page1.php <? session_start(); $_SESSION['today']= date('Y-m-d h:m:s'); ?> <html> <body> <a href="page.2.php">click to go to page 2</a> </body> </html> page2.php <? session_start(); ?> <html> <body> The value of $_SESSION['today'] is <?=$_SESSION['today']?>. </body> </html> This code assumes you either have trans-sid compiled OR are allowing cookies on your browser AND cookies is a method that PHP sessions use (it is by default) in php.ini. Justin French -------------------- http://Indent.com.au Web Development & Graphic Design -------------------- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php