mirror of
https://github.com/twisterarmy/cloud-server.git
synced 2025-03-12 21:41:09 +00:00
reset cache on user login/logout
This commit is contained in:
parent
97d27fc8c9
commit
f0e976f81c
@ -80,6 +80,8 @@ if (isset($_POST) && $_POST) {
|
|||||||
$_SESSION['userName'] = $userName;
|
$_SESSION['userName'] = $userName;
|
||||||
$_SESSION['userId'] = $userId;
|
$_SESSION['userId'] = $userId;
|
||||||
|
|
||||||
|
$_memcache->flush();
|
||||||
|
|
||||||
// Redirect
|
// Redirect
|
||||||
header('Location: ' . PROJECT_HOST, true, 302);
|
header('Location: ' . PROJECT_HOST, true, 302);
|
||||||
|
|
||||||
|
@ -2,7 +2,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (isset($_SESSION['userName'])) {
|
if (isset($_SESSION['userName'])) {
|
||||||
|
|
||||||
session_destroy();
|
session_destroy();
|
||||||
|
|
||||||
|
$_memcache->flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
header('Location: ' . PROJECT_HOST, true, 302);
|
header('Location: ' . PROJECT_HOST, true, 302);
|
Loading…
x
Reference in New Issue
Block a user