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:[EMAIL PROTECTED]]
Sent: 26. juni 2001 17:13
To: [EMAIL PROTECTED]
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:  [EMAIL PROTECTED]
p:  01403 268299
f:   01403 268013
---------------------------------------------
 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to