Web Hosting Talk







View Full Version : session help


DWood
04-24-2002, 08:55 PM
I am new to sessions, could somebody help me covert the following code into sessions, i really dont know how its done:


//set the cookies with the username and password fields
setcookie("bracketuser",$username,time() + 86400, '/');
setcookie("bracketpass",$password,time() + 86400, '/');
//extract the variables from the cookies
$username = $HTTP_COOKIE_VARS["bracketuser"];
$password = $HTTP_COOKIE_VARS["bracketpass"];

please help me out, thanks

dwood

(SH)Saeed
04-24-2002, 09:09 PM
Why don't you take a look at the following website, there is everything you need to know about sessions..

http://www.php.net/manual/en/ref.session.php
This page has explanations and links to everything session related in the PHP language (including examples). Also look at the table of contests where you can read more in detail about each and every session function in PHP.

DWood
04-24-2002, 09:38 PM
lol, thanks.....how could i forget to check the manual??? oh well, sessions are up and working on our site now...i think

smacx
04-24-2002, 10:36 PM
Another good place is phpbuilder.com

There are some really experienced people on their forum who are allways willing to help...