Can I make a session alive after when user closes his browser?
<p>I'm trying to implement a system to keep an user logged in for a while. I can do that by using cookies and storing it into database and then identifying him.</p>

<p>But recently I heard a session can be alive even when user closes his browser and opens a new window. I mean can a session still be available after closing/opening the browser again <em>(or even multiple time)</em>?</p>

<hr>

<p>How much time <em>(maximum)</em> can I use <code>$_SESSION["LoginValidation"]</code> in following script? </p>

<pre><code>&lt;?php
session_start();
$_SESSION["LoginValidation"] = ture;
</code></pre>

<p>Currently that session will be available until closing the browser.</p>