How to disable SID (session ID) from the URL in Magento 2?

If you found this post helpful, kindly share it and show your support :)

For example: https://example.com/store/?SID=sfl317buq8ru4uf4a

The SID is a “session ID” and Magento uses SID to trace a user’s activity within the same Magento installation. In normal case, Magento powers one website and one store from the one installation. But, Magento can also power multiple websites with multiple stores from one installation though. The SID permits users to remain logged in while navigating across these websites/stores.

If you have enabled SID function for your Magento store, the SID is sent when accessing catalog URLs so Magento can update the session with the user’s location/state for the current website/store.

If you are not running a multi-website or multi-store environment, you can safely disable the SID on the frontend.

You can simply disable it from Magento Admin panel by using below steps.

Go to the Store >> Configuration >> General >> Web >> Under Session Validation Settings, set SID on Storefront value to No and click on “Save config” button to reflect the changes.

That’s it 🙂

Please cross check it from your end and let me know if you have any further assistance on this.

Loading

Mohammed Noufal

I'm Mohammed Noufal, working as Server Admin for the last 10 years.  In my day-to-day life, l had to face different problems related to Web-hosting. On my website Errorlogz.com, you can find solutions for different Web-hosting-related problems. Sometimes, I spent hours searching/googling to find a solution. This inspired me to start a website that gives solutions to different Webhosting problems. This website includes basic Linux and windows commands, and different control panels like cPanel, Plesk, DirectAdmin, Webmin & so on. You can find solutions and or suggestions for different Web-hosting related problems from here. Hence I would like to say Errorlogz is your server protector.  I will be glad if Logdetect can help any one of the Server admins to find a solution to his problem.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *