mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Fix session variables being reset to an empty string
This commit is contained in:
parent
07da55ba8e
commit
b32ae03396
3 changed files with 6 additions and 8 deletions
|
|
@ -2636,14 +2636,9 @@ class memberController extends member
|
|||
*/
|
||||
function destroySessionInfo()
|
||||
{
|
||||
if(!$_SESSION || !is_array($_SESSION)) return;
|
||||
|
||||
$memberInfo = Context::get('logged_info');
|
||||
$memberSrl = $memberInfo->member_srl;
|
||||
|
||||
foreach($_SESSION as $key => $val)
|
||||
if (!Rhymix\Framework\Session::isStarted())
|
||||
{
|
||||
$_SESSION[$key] = '';
|
||||
return;
|
||||
}
|
||||
|
||||
Rhymix\Framework\Session::destroy();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue