mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-12 10:31:09 +03:00
Merge pull request #171 from Mibew/nav666-patch-1
Try to initialize session only once
This commit is contained in:
commit
a2774b8fb9
@ -59,8 +59,18 @@ if ($tmp_request->isSecure()) {
|
|||||||
// Remove temporary request to keep global scope clean.
|
// Remove temporary request to keep global scope clean.
|
||||||
unset($tmp_request);
|
unset($tmp_request);
|
||||||
|
|
||||||
// Initialize user session
|
if (version_compare(phpversion(), '5.4.0', '<')) {
|
||||||
session_start();
|
if(session_id() == '') {
|
||||||
|
session_start();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (session_status() == PHP_SESSION_NONE) {
|
||||||
|
session_start();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (function_exists("date_default_timezone_set")) {
|
if (function_exists("date_default_timezone_set")) {
|
||||||
$timezone = !empty($configs['timezone'])
|
$timezone = !empty($configs['timezone'])
|
||||||
|
Loading…
Reference in New Issue
Block a user