Merge pull request #100 from yanobs/master
Check that $_SESSION["uid"] is defined before checking value
This commit is contained in:
commit
3b5def6e80
|
@ -106,7 +106,7 @@
|
||||||
if (isset($_COOKIE[$session_name])) {
|
if (isset($_COOKIE[$session_name])) {
|
||||||
@session_start();
|
@session_start();
|
||||||
|
|
||||||
if (!$_SESSION["uid"]) {
|
if (!isset($_SESSION["uid"] || !$_SESSION["uid"]) {
|
||||||
session_destroy();
|
session_destroy();
|
||||||
setcookie(session_name(), '', time()-42000, '/');
|
setcookie(session_name(), '', time()-42000, '/');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue