Hello, When I moved a new host, bluehost, I sometimes saw PHPSession ID at the end of the URL from my dating sites. When I refresh that page, and it is gone. does it affect my sites? How to get rid of PHPSession ID at the end of URL? Thanks.
The session ID appears the first time at the end of the URL, when the session cookie isn't set. Then when you reload the page or go to another one, it'll disappear. PHP rewrites these tags automatically because the session would be lost if the server can't keep track of the ID. Meaning, if your site doesn't use sessions, your server probably has session auto start configured. But if you DO use sessions on your site, I suggest don't trying to remove this ID, because it's necessary for users who don't have cookies enabled.
hello this remove ! For a .htaccess file you should add the following line: php_flag session.use_trans_sid off And in PHP code: ini_set('session.use_trans_sid', false);
Let me try this. Can I put this ini_set('session.use_trans_sid', false); on the top of the php page? If I have 50 pages, then I have to place on 50? how about templates? Thanks.
If you really want to remove it, use the htaccess version he posted. You just have to create one new file and upload it.
I added this line php_flag session.use_trans_sid off to the top of my htaccess file, but it does not work. Please help. Thanks.