session help

I am new to sessions, could somebody help me covert the following code into sessions, i really dont know how its done:

PHP Code:
//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

 

 

 

 

Top