session variables

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
maildecorreo
Forum Newbie
Posts: 1
Joined: Wed Sep 27, 2006 5:44 pm

session variables

Post by maildecorreo »

how can I request and modify session variables using php?

Thanks

Marc

http://www.itnewschannel.com
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post 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.
Post Reply