mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-24 21:03:19 +09:00
Force start session if SSO is used
This commit is contained in:
parent
42d864641f
commit
6c14b9060a
1 changed files with 3 additions and 2 deletions
|
|
@ -456,7 +456,7 @@ class Context
|
|||
*
|
||||
* @return void
|
||||
*/
|
||||
function checkSessionStatus()
|
||||
function checkSessionStatus($force_start = false)
|
||||
{
|
||||
is_a($this, 'Context') ? $self = $this : $self = self::getInstance();
|
||||
|
||||
|
|
@ -464,7 +464,7 @@ class Context
|
|||
{
|
||||
return;
|
||||
}
|
||||
if(count($_SESSION) && !headers_sent())
|
||||
if($force_start || (count($_SESSION) && !headers_sent()))
|
||||
{
|
||||
$tempSession = $_SESSION;
|
||||
unset($_SESSION);
|
||||
|
|
@ -741,6 +741,7 @@ class Context
|
|||
{
|
||||
if(self::get('default_url'))
|
||||
{
|
||||
$this->checkSessionStatus(true);
|
||||
$url = base64_decode(self::get('default_url'));
|
||||
$url_info = parse_url($url);
|
||||
$url_info['query'].= ($url_info['query'] ? '&' : '') . 'SSOID=' . session_id();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue