note 8087 added to session_start

From: Date: Sat, 26 Aug 2000 10:17:19 +0000
Subject: note 8087 added to session_start
Groups: php.notes 
Request: Send a blank email to php-notes+get-3405@lists.php.net to get a copy of this message
a quick primer on sessions...check out..just start the session with ..like this.. ----------------------------------- session_start(); //start session session_register($name); //register the variable $name=myname; ----------------------------------- if u want to access this variable in the next page just follow these steps: session_start(); //start the session print $name; output is: myname; its that simple -----------------------------------if u want to close the session follow these steps: session_unregister($name); //unregister the variable session_destroy();//destroy the session ----------------------------------- happy coding http://www.php.net/manual/function.session-start.php

« previous php.notes (#3405) next »