force cookies for sessions
not my code, forgot where I've found it
Copy this code and paste it in your HTML
// These commands must be set BEFORE the session is started
ini_set('session.use_trans_sid', false); ini_set('session.use_only_cookies', true);
//start session...
Report this snippet
Comments
Subscribe to comments