Posted By

sveggiani on 01/05/09


Tagged

cookies sessions


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

umang_nine
vali29


force cookies for sessions


 / Published in: PHP
 

not my code, forgot where I've found it

  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  

You need to login to post a comment.