force cookies for sessions


/ Published in: PHP
Save to your folder(s)

not my code, forgot where I've found it


Copy this code and paste it in your HTML
  1. // These commands must be set BEFORE the session is started
  2. ini_set('session.use_trans_sid', false);
  3. ini_set('session.use_only_cookies', true);
  4. ini_set('url_rewriter.tags', '');
  5.  
  6. //start session...

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.