Disable PHP’s session use trans sid

From wiki.morphey.org

Jump to: navigation, search

A lot of times, it happens to be on a hosting php with the module session use_trans_sid installed by default and it is not possible to ask to the admin to disable him.

To obviate to the problem, can be inserted in the file .htaccess in the dir of the site this directive:

 
php_flag session.use_trans_sid off
 

Or it is possible to directly insert the directive in the code php:

 
<?php
// ....
 
ini_set('session.use_trans_sid', false);
 
 
// ....
 
?>
 
Personal tools