title: Giving href url location for parent window from child window
body: <p>When I click logout in my page, it calls the logout.php for twitter logout. The below coding opens the twitter logout window in a child window and refreshes the same parent window for logout. </p>
  
  <p>Also the user clicks the signout button in child window, they are logged out from twitter.
  What I want to do here is, have to give a URL for the parent window when it refreshing.</p>
  
  <p>When the parent window refreshes, it stays the URL
   <strong>"www.example.com/sitename/index.php"</strong>.</p>
  
  <p>I want to change the URL as
   <strong>"http://example.com/sitename/index.php"</strong>. 
  Since I had a problem with URL starts with WWW in my site</p>
  
  <p>Anybody can help me to solve this issue. Thanks in advance</p>
  
  <p><strong>Logout.php</strong></p>
  
  <pre><code>&lt;?php
  include("header.php");
      header("Location:https://twitter.com/#!/logout");
  ?&gt;
  
  &lt;script&gt;
  
  function refreshParent()
  {
  
    window.opener.location.href = window.opener.location.href;
  
    if (window.opener.progressWindow)
  
    {
      window.opener.progressWindow.close()
    }
      window.close();
  }
  &lt;/script&gt;
  </code></pre>