RE: [PHP-WIN] Session varibles
| From: | Christian Sandfeld | Date: | Wed, 27 Jun 2001 10:36:51 +0000 |
| Subject: | RE: [PHP-WIN] Session varibles | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-8075@lists.php.net to get a copy of this message | ||
Jason,
In order to work with session vars, do like this:
<?php
session_start();
session_register("my_var_name"); // Registers the var as a session var
$my_var_name = "foo";
?>
This all has to be done before sending output to the browser, just as is the
case with cookies.
Hope this helped :)
/Christian
-----Original Message-----
From: Jason Belletty [mailto:jason@cnhsoftware.com]
Sent: 26. juni 2001 17:13
To: php-windows@lists.php.net
Subject: [PHP-WIN] Session varibles
Hi Everybody,
I'm a php newbie - (best to warn you straight away!!!)
How do I use session variables?
In asp its just: session("somevariable")
Thanks in advance,
Jason.
---------------------------------------------
Jason Belletty
Software Development
w: www.spinoffproducts.com
e: jason@spinoffproducts.com
p: 01403 268299
f: 01403 268013
---------------------------------------------