newbie@session - please help!

From: Date: Mon, 02 Apr 2001 22:39:07 +0000
Subject: newbie@session - please help!
Groups: php.general 
Request: Send a blank email to php-general+get-46695@lists.php.net to get a copy of this message
Hello! After confering with the this group earlier I got some hints on where to find som tutorials on sessions. But I am still confused about some things. Have I under stood it right: #session.php <? if (!$PHPSESSID) { session_start(); #Then if some variables to register session_register(lang); session_register(name); setcookie (PHPSESSID, $PHPSESSID,time()+3600); setcookie (lang, $lang,time()+3600); setcookie (name, $name,time()+3600); } elseif ($PHPSESSID) { #I DON'T HAVE A CLUE TODO HERE, ANY HINTS? } ?> #END session.php And then I include the session.php in all the files I need to use session in? And I can get the variables from the cookie? David

« previous php.general (#46695) next »