Question about PHP Sessions?

Kieran Gold

New member
Hi, I've got a question about PHP Sessions. So I have some simple code like

<?php
session_start();
// store session data
$_SESSION['views']=1;
?>

And I'm wondering how long will it last? Like will the session stay open until the browser is closed? Until the user has left my site? When he/she clears the cache, or never?

Thanks
 
Back
Top