mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-06-10 12:57:13 +09:00
Prevent unnecessary double cookie refresh when logging in as admin
This commit is contained in:
parent
7f1a61fb83
commit
019950c8a8
2 changed files with 3 additions and 3 deletions
|
|
@ -226,9 +226,9 @@ class ModuleObject extends BaseObject
|
|||
}
|
||||
|
||||
// Refresh session
|
||||
if (!isset($_SESSION['RHYMIX']['admin_accessed']))
|
||||
if (!isset($_SESSION['RHYMIX']['admin_accessed']) && !headers_sent())
|
||||
{
|
||||
if (!headers_sent())
|
||||
if (!isset($_SESSION['RHYMIX']['last_refresh']) || $_SESSION['RHYMIX']['last_refresh'] < time() - 10)
|
||||
{
|
||||
$_SESSION['RHYMIX']['admin_accessed'] = \RX_TIME;
|
||||
Rhymix\Framework\Session::refresh(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue