PHP has sessions, and they are called sessions. Look them up on www.php.net for full details but here is the basics:
session_start(); // starts a session needed at the top of all pages that use sessions.
session_register("test"); // tells the session engine that the variable $test is to be logged.
session_unregister("test"); // tells the session engine to stop logging the variable $test.
session_destory(); // removes the session.