Programming

Turn PHP_SESSID off on an OVH shared server

In a .htaccess file, add:

SetEnv SESSION_USE_TRANS_SID 0

In your PHP code:

ini_set('session.use_cookies', '1');
ini_set('session.use_only_cookies', '1');  // PHP >= 4.3
ini_set('session.use_trans_sid', '0');
ini_set('url_rewriter.tags', '');

Back


Comments

No comment yet.

A remark, a suggestion? Do not hesitate to express yourself below. Just be courteous and polite, please.

If this field is left blank, you will appear as Anonymous.