View Single Post
Old 07-14-2005, 09:29 AM   #3 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,529
sde is on a distinguished road
have you used cookies before? ( $_COOKIE[] ) .. sessions are basically cookies except they live on the server. session variables are just a lot easier to set than cookies.

a session starts when you visit a domain, and usually will last until you either leave the site, close your browser, or sit on one page longer than the timeout period.

it's pretty easy if you just think of it as an array. the variables you set are unique to the session and the user who is using them.

if i set $_SESSION['username'] = "sde"; on page 1, then $_SESSION['username'] will return that value as long as the session exists no matter what page you are on within the domain.

i think you are making it a little more complicated than it really is. just think of it like a special array that you can put most any type of values in.

if you have any more specific questions, let me know.
__________________
Mike
sde is offline   Reply With Quote