Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with .htaccess
- php_value session.use_trans_sid 0
- php_value session.use_only_cookies 1
- or add in index.php
- if (isset($_GET['PHPSESSID'])) {
- $requesturi = preg_replace('/?PHPSESSID=[^&]+/',"",$_SERVER['REQUEST_URI']);
- $requesturi = preg_replace('/&PHPSESSID=[^&]+/',"",$requesturi);
- header("HTTP/1.1 301 Moved Permanently");
- header("Location: http://".$_SERVER['HTTP_HOST'].$requesturi);
- exit;
- or add in index.php
- ini_set("url_rewriter.tags","");
Advertisement
Add Comment
Please, Sign In to add comment