How to Remove SID query from Magento 2.1.2 URLs
I have already tried following solution but din't work for me
How to remove SID (session ID) from URL in Magento 2
http://inchoo.net/dev-talk/remove-sid-from-magento-urls/
https://www.acunetix.com/vulnerabilities/web/php-session-use_trans_sid-enabled