Removed session_start in controller, removed exception from Security class
Security class doesn't need to bark so much, just fail and move on
This commit is contained in:
parent
b4eb28f945
commit
650c16efae
3 changed files with 0 additions and 26 deletions
|
@ -148,18 +148,6 @@ class Controller extends Object
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Establishes the session
|
|
||||||
if (ini_get('session.auto_start') == 0)
|
|
||||||
{
|
|
||||||
if ($module->session)
|
|
||||||
{
|
|
||||||
if (session_id() == '')
|
|
||||||
{
|
|
||||||
session_start();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validates security level
|
// Validates security level
|
||||||
if ($module->security !== false)
|
if ($module->security !== false)
|
||||||
{
|
{
|
||||||
|
|
|
@ -130,7 +130,6 @@ class Security
|
||||||
{
|
{
|
||||||
if (session_id() == '')
|
if (session_id() == '')
|
||||||
{
|
{
|
||||||
throw new Exception('Sessions must be enabled to use the Security class');
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
13
jar.php
13
jar.php
|
@ -1283,18 +1283,6 @@ class Controller extends Object
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Establishes the session
|
|
||||||
if (ini_get('session.auto_start') == 0)
|
|
||||||
{
|
|
||||||
if ($module->session)
|
|
||||||
{
|
|
||||||
if (session_id() == '')
|
|
||||||
{
|
|
||||||
session_start();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validates security level
|
// Validates security level
|
||||||
if ($module->security !== false)
|
if ($module->security !== false)
|
||||||
{
|
{
|
||||||
|
@ -7093,7 +7081,6 @@ class Security
|
||||||
{
|
{
|
||||||
if (session_id() == '')
|
if (session_id() == '')
|
||||||
{
|
{
|
||||||
throw new Exception('Sessions must be enabled to use the Security class');
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue