Today I rolled out a new Magento site and for the first time in almost 2 years of doing Magento development I had the session id appended to the url, namely: ?___SID=U
This was driving me mad and I didn’t want search engines to index the site with the “?___SID=U” in the URL, so I wanted to fix it asap.
Generally when I have a problem, there is usually someone else in the world who has had the same issue, so I searched the web and Magento forums for an answer. I couldn’t find any conclusive answers and seeing as though the Magento technical documentation is notoriously limited I had to find the solution myself.
So, here’s the simple solution:
- Go to System > Configuration > Web > Session Validation Settings
- Set Use SID on Frontend to “No”
Pretty simple, but I’m sure that it has caused frustration to a number of Magento developers out there so I hope that helps you dudes!




10 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.
I also encountered this problem, thanks for your sharing.
Thanks for sharing! This tip was helpful
Try this solution if the above doesn’t work – App.php (mod)…
http://www.zetaprints.com/magentohelp/remove-session-id-from-mageto-url/
Nice post real helpful to me thanks for the help
Yes, these session ids are really very bad for SEO. Еhey create a lot of duplicate pages and we must get rid of them.
Great tip thank you. Saved my magento site!
Thanks for giving me the solution to my question
Thanks for the sharing. i switched it off. I only saw this SID after the client made an conversion…
Thanks
I did the configuration setting, but still sometimes magento appends SID=U to URL.s.