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; }
You must be logged in to post a comment.
Apr 07, 2011 — 0 comments
Apr 07, 2011 — 1 comment
May 22, 2010 — 11 comments
May 22, 2010 — 10 comments
Feb 25, 2010 — 5 comments
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; }