Page 1 of 1

session variables

Posted: Wed Sep 27, 2006 10:29 pm
by maildecorreo
how can I request and modify session variables using php?

Thanks

Marc

http://www.itnewschannel.com

Posted: Wed Sep 27, 2006 11:36 pm
by aaronhall
Session variables are accessible through the session superglobal array $_SESSION

Code: Select all

<?

$_SESSION['foo'] = "bar";

?>
Before you start doing that, you need to initiate the session. Check out http://www.php.net/session.