Is self.location clearing the session?
<p>There is a search form <code>search.php</code>. After clicking the <code>Search now</code> button I go to <code>search_result.php</code> page and  the data brought through the POST value are set in the session.</p>

<p>There is a button called <code>"Edit Ur search"</code> in the <code>search_result.php</code> page.When I click on it it should bring me back to <code>search.php</code> where the values set in the session must be displayed and the search form must be pre-filled with those session values.</p>

<p>In <code>search_result.php</code> I call <code>edit_search()</code> on the click event on <code>"Edit Ur search"</code> button</p>

<pre><code>function edit_search(){

    var url = "hotels.php";

    self.location = url;

}
</code></pre>

<p>But when I return back to search.php I loss the session value. Is it due <code>self.location</code> clearing the session?</p>

<p>Any other method to complete the requirement is appreciated.</p>
