mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
#952 session 재생성 제거
This commit is contained in:
parent
231e4e0bd6
commit
3d08e371a9
3 changed files with 0 additions and 41 deletions
|
|
@ -1809,8 +1809,6 @@ class memberController extends member
|
|||
}
|
||||
}
|
||||
|
||||
$_SESSION['session_checkup'] = null;
|
||||
$this->regenerateSession();
|
||||
$this->setSessionInfo();
|
||||
|
||||
return $output;
|
||||
|
|
@ -1870,37 +1868,6 @@ class memberController extends member
|
|||
$this->addMemberMenu( 'dispMemberOwnDocument', 'cmd_view_own_document');
|
||||
}
|
||||
|
||||
function validateSession()
|
||||
{
|
||||
$destory_session = false;
|
||||
if($_SESSION['destroyed'] === true) $destory_session = true;
|
||||
|
||||
if($destory_session)
|
||||
{
|
||||
$this->destroySessionInfo();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function regenerateSession()
|
||||
{
|
||||
if(!$_SESSION['session_checkup'])
|
||||
{
|
||||
$_SESSION['session_checkup'] = time();
|
||||
}
|
||||
|
||||
if(time() - $_SESSION['session_checkup'] > 30)
|
||||
{
|
||||
$_SESSION['destroyed'] = true;
|
||||
session_regenerate_id();
|
||||
$_SESSION['destroyed'] = false;
|
||||
$_SESSION['session_checkup'] = time();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Logged method for providing a personalized menu
|
||||
* Login information is used in the output widget, or personalized page
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue