My login script:
if (login_user($user_login, $password)){//Login check is verified
ini_set('session.cookie_lifetime', 60 * 60 * 24 * 365);
ini_set('session.gc_maxlifetime', 60 * 60 * 24 * 365);
session_start();
$user = get_user($user_login);
$_SESSION['username'] = $user['username'];
When I login for testing, the session is active between different pages on both Firefox and Chrome. No problems there.
Though, when I restart the browser, the Login session is lost in Chrome, whilist I'm still logged in in Firefox.
I've tried to google the issue but the main pointed out issue is a missing favicon which I have in my root folder.
EDIT
I don't know if it helps, but I've found a cookie in Chrome called PHPSESSID (related to my website) and it basically says "Expires when browser closes".
The same cookie, PHPSESSID, expires on Friday, May 3, 2019, 2:12:28 AM