Sessions

I’m making a user login panel and I have a few problems from it.

I’m using flash to send the variable from itself into the php. After the login is complete, if a link is pressed, the loggedIn variable is deleted and sends you back into the login.

I need to know how to keep the iser logged in and I belive from what I heard about sessions that it will save the variable in a cookie to keep them logged in.

How do I accomplish this? :red: