mirror of
https://github.com/friendica/friendica
synced 2024-11-11 15:02:55 +00:00
Minor session stuff
This commit is contained in:
parent
aef332aad0
commit
6065fca243
1 changed files with 2 additions and 1 deletions
|
@ -4,8 +4,9 @@ require_once('include/datetime.php');
|
||||||
|
|
||||||
function nuke_session() {
|
function nuke_session() {
|
||||||
|
|
||||||
new_cookie(0); // make sure cookie is deleted on browser close, as a security measure
|
new_cookie(-3600); // make sure cookie is deleted on browser close, as a security measure
|
||||||
session_unset();
|
session_unset();
|
||||||
|
session_destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
// When the "Friendica" cookie is set, take the value to authenticate and renew the cookie.
|
// When the "Friendica" cookie is set, take the value to authenticate and renew the cookie.
|
||||||
|
|
Loading…
Reference in a new issue