mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 12:06:22 +05:30
logout bug fix
logout affects only the current installation
This commit is contained in:
parent
a257c1c2ea
commit
e4ecaa72f7
1 changed files with 5 additions and 1 deletions
|
|
@ -1,6 +1,10 @@
|
|||
<?php
|
||||
|
||||
session_destroy();
|
||||
unset($_SESSION[config("site.url")]);
|
||||
if(empty($_SESSION))
|
||||
{
|
||||
session_destroy();
|
||||
}
|
||||
|
||||
header('location: login');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue