persist session after closing browser
<p>I have an ASP.NET Login App on my site and once logged in, I can navigate to the WordPress(PHP) side (still on the same domain) whilst maintaining the session. See my pastie link below for how this works.</p>

<p>However, the problem arises if I close my browser, I then lose the PHP 'session' despite keeping the ASP.NET session. So I'm 'logged out' on the PHP side but still 'logged in' on the .NET side.</p>

<p>-- Is there a way, using my existing code, to set a lifetime to the session/cookie, to avoid the session/cookie disappearing when I close my browser? --</p>

<p>I have pastie'd my current PHP code from my template's  here: <a href="http://pastie.org/private/ndcqgbog34uqld1etozda" rel="nofollow">http://pastie.org/private/ndcqgbog34uqld1etozda</a> which checks and persists the session.</p>

<p>I did have a look at this example on PHP.net but got confused as to how to use it in my solution.</p>

<p>Many thanks for any pointers with this.</p>
