mig35September 17, 2007
view tutorial
view tutorial
well, the source code includes comments to walk you through the code. I thought that would be helpful.
well, the source code includes comments to walk you through the code. I thought that would be helpful.
view tutorial
Ok - this is the super basic way of setting a session, but here's a more secure way. I have even more secure session stuff for login stuff that deals with salts.
session_start(); // Start the session
// Simple protection of session attacks.
if(!isset($_SESSION['secured']))
{
session_regenerate_id();
$_SESSION['secured'] = 1;
}