Fix session expiring when it should be stored
This commit is contained in:
parent
235a7281ac
commit
65786aa191
@ -13,9 +13,10 @@
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (isset($_COOKIE['wallos_login'])) {
|
if (isset($_COOKIE['wallos_login'])) {
|
||||||
$cookie = explode('|', $_COOKIE['wallos_login'], 2) ;
|
$cookie = explode('|', $_COOKIE['wallos_login'], 3);
|
||||||
$username = $cookie[0];
|
$username = $cookie[0];
|
||||||
$token = $cookie[1];
|
$token = $cookie[1];
|
||||||
|
$main_currency = $cookie[2];
|
||||||
|
|
||||||
$sql = "SELECT * FROM user WHERE username = :username";
|
$sql = "SELECT * FROM user WHERE username = :username";
|
||||||
$stmt = $db->prepare($sql);
|
$stmt = $db->prepare($sql);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user