login.php: require sessions.php only once
This commit is contained in:
parent
5ccc1cf5d7
commit
8c453eac3e
|
@ -27,7 +27,7 @@
|
||||||
session_set_cookie_params(SESSION_COOKIE_LIFETIME);
|
session_set_cookie_params(SESSION_COOKIE_LIFETIME);
|
||||||
}
|
}
|
||||||
|
|
||||||
require "sessions.php";
|
require_once "sessions.php";
|
||||||
|
|
||||||
if (authenticate_user($link, $login, $password)) {
|
if (authenticate_user($link, $login, $password)) {
|
||||||
initialize_user_prefs($link, $_SESSION["uid"]);
|
initialize_user_prefs($link, $_SESSION["uid"]);
|
||||||
|
|
Loading…
Reference in New Issue