1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

Guard e_session::setDefaultSystemConfig() to dedent function

This commit is contained in:
Nick Liu
2020-04-18 14:05:16 -05:00
parent 5b34bc9bf1
commit 4441d6e666

View File

@@ -194,8 +194,8 @@ class e_session
*/
public function setDefaultSystemConfig()
{
if(!$this->getSessionId())
{
if ($this->getSessionId()) return $this;
$config = array(
'ValidateRemoteAddr' => (e_SECURITY_LEVEL >= self::SECURITY_LEVEL_BALANCED),
'ValidateHttpVia' => (e_SECURITY_LEVEL >= self::SECURITY_LEVEL_HIGH),
@@ -244,7 +244,6 @@ class e_session
$this->setConfig($config)
->setOptions($options);
}
return $this;
}