
January 28th, 2006, 12:41 PM
|
 |
Play up Pompey!
|
|
Join Date: Feb 2005
Location: Hampshire, ENG
|
|
Quote: | Originally Posted by oneMSBi there are hundreds of tutorilas and sample scripts about Sessions in PHP. Its one the most used and easiest things to do with PHp for user managment/control.
Easy as pie.
Check out the following link for a short intro to Sessions
http://codewalkers.com/tutorials/32/1.html ... and keep clicking next
For a little more advanced tutorial on using sessions for user handling
http://www.sitepoint.com/article/us...-sessions-mysql
You can use cookies, but the $_SESSIOn global array is the better method as far as I'm concerned. just assign strings directly to the session super gloabl array.
Code:
session_start();
$_SESSION["test_variable"] = "Manchester Unites Rule";
on another page to get the value of the session variable just use something like
Code:
session_start();
print $_SESSION["test_variable"];
|
my bad, solved the problem whilst talking about it in the shoutbox and forgot to change my message here, thanks for the help anyway, have some rep 
|