mirror of
https://github.com/twisterarmy/cloud-server.git
synced 2025-03-12 13:31:04 +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['userId'] = $userId;
|
||||
|
||||
$_memcache->flush();
|
||||
|
||||
// Redirect
|
||||
header('Location: ' . PROJECT_HOST, true, 302);
|
||||
|
||||
|
@ -2,7 +2,10 @@
|
||||
<?php
|
||||
|
||||
if (isset($_SESSION['userName'])) {
|
||||
|
||||
session_destroy();
|
||||
|
||||
$_memcache->flush();
|
||||
}
|
||||
|
||||
header('Location: ' . PROJECT_HOST, true, 302);
|
Loading…
x
Reference in New Issue
Block a user