mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Fix notice that the session has been already started after retrieving its id
This commit is contained in:
parent
1ad263170e
commit
5c507d5d91
@ -196,8 +196,15 @@ class PhpSession extends Session
|
|||||||
*/
|
*/
|
||||||
public function getId()
|
public function getId()
|
||||||
{
|
{
|
||||||
$this->open(); // Make sure we actually get a id
|
if (($id = session_id()) === '') {
|
||||||
return session_id();
|
// Make sure we actually get a id
|
||||||
|
$this->open();
|
||||||
|
session_write_close();
|
||||||
|
$this->hasBeenTouched = true;
|
||||||
|
$id = session_id();
|
||||||
|
}
|
||||||
|
|
||||||
|
return $id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user