mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Use secure and httponly session cookies
As discussed on the mailing list, enable "secure" and "httponly" for session cookies to prevent them from being transferred over insecure connections. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
1c9db1d1f1
commit
00e4e0294f
3 changed files with 4 additions and 4 deletions
|
@ -658,7 +658,7 @@ function try_login() {
|
|||
else
|
||||
$cookie_time = 0;
|
||||
|
||||
setcookie("AURSID", $new_sid, $cookie_time, "/");
|
||||
setcookie("AURSID", $new_sid, $cookie_time, "/", null, !empty($_SERVER['HTTPS']), true);
|
||||
header("Location: " . $_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING']);
|
||||
$login_error = "";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue