i've been reading PHP documentation and i'm trying to get my head around the whole session thing. Can I just start a session by doing this?
$_SESSION["user"] = "admin";
or do i need to do a session_start() first? what about session_register()? i understand that session_register does kind of the same thing as the statement above but has an implicit call to session_start() built in.
And what is the advantage of giving a session a name? It sounds like extra hassle to me and i'd like to know what benefits there are or why one might do it at all.
and lastly, i am very interested in keeping my session id secret...any tips?