- Code: Select all
ini_set("session.use_trans_sid", 0);
Disabling automatic session IDs in URLs
1 post • Page 1 of 1
Disabling automatic session IDs in URLsIf the PHP is configured to automatically append the Session ID to any URLs. Eg - in php.ini, the variable session.use_trans_sid was set to 1. This means when each webpage loaded, the server scanned all hyperlinks in the HTML and automatically appended the session ID to the end of the linked to URL. Not only does put a strain on server performance, it also can render your pages unindexable by search engines. To disable it, I started my PHP pages with this code:
1 post • Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 0 guests |
|