note 8087 deleted from function.session-start by jimw
| From: | jimw@php.net | Date: | Fri, 07 Dec 2001 20:23:31 +0000 |
| Subject: | note 8087 deleted from function.session-start by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-21886@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