I am created website using cakephp. After I logged in(google chrome) my aplicaion, without logout I am able to open the same session in another browser(Mozilla Firefox).
How to handle session in this scenario.
I would check your cookie time. If you dont set a time for cookies to remember your logged in then they expire when the browser is closed. I would honestly set cookies for some decent time depending on what its for. Alot of people Close Browser Accidentally. A session is closed when you use session_destroy();
//if is logged in
$date_of_expiry = time() + 60 ;
setcookie( "userlogin", "anonymous", $date_of_expiry );
//another example
setcookie("email-".str_replace(".","_",$_SERVER['SERVER_NAME']),$email,$time_minutes,"/",$_SERVER['SERVER_NAME'],0);