title: Magento 2.1.7 moved website redirecting to old url
body: <p>i have installed latest magento 2.1.7 version on my server and installed a theme. I have installed magento in a folder(<strong><a href="http://example.com/site/" rel="nofollow noreferrer">http://example.com/site/</a></strong>) everything is working fine there. Now i have moved it to root directory (<strong><a href="http://example.com/" rel="nofollow noreferrer">http://example.com/</a></strong>) as a main website, but there it is not working, it redirecting to old url with SID var. <strong><a href="http://example.com/site/?sid=8374urh347yr7w4ry" rel="nofollow noreferrer">http://example.com/site/?sid=8374urh347yr7w4ry</a></strong></p>
  
  <p>I have tried the following changes:</p>
  
  <ul>
  <li>Changed base_url in core_config_data table,</li>
  <li>Deleted all cache/ everything in var/</li>
  <li>Deleted browser cache/cookies</li>
  <li>I tried on localhost but yet redirecting to <strong><a href="http://example.com/site/?sid=8374urh347yr7w4ry" rel="nofollow noreferrer">http://example.com/site/?sid=8374urh347yr7w4ry</a></strong></li>
  <li>Deleted system tmp files</li>
  <li>I checked env.php file but there is nothing</li>
  <li>All permission set</li>
  </ul>
  
  <p>Is magento store base_url in any file also? so that i could change.</p>
  
  <p>Any help will be appreciated</p>