Fix for random logout
![](https://secure.gravatar.com/avatar/7f6e154247edf2db0a04c10eb3f08fcd.jpg?s=120&d=mm&r=g)
Hi,
I spent some time figuring out why I got randomly logged out from the webpage and submitted a patch to https://jira.observium.org/browse/OBS-3132
Basically it was the session_regenerate_id() call that caused it, so I adopted the https://www.php.net/manual/en/function.session-regenerate-id.php suggested way.
Well it works for me, try it out if you have the same issue.
/niklas
![](https://secure.gravatar.com/avatar/3bbbd945c333b8013d0dfa23058f65b9.jpg?s=120&d=mm&r=g)
Hi Niklas,
really thanks for this research. I really missed this warning on session_regenerate_id() description :)
------- *Warning*
Currently, session_regenerate_id does not handle an unstable network well, e.g. Mobile and WiFi network. Therefore, you may experience a lost session by calling session_regenerate_id.
-------
While we not have troubles with network connections, we never seen this trouble :D I’m studying your changes, probably I’ll change something, but in general you have found the right solution.
Niklas Larsson via observium wrote on 15/10/2019 16:04:
Hi,
I spent some time figuring out why I got randomly logged out from the webpage and submitted a patch to https://jira.observium.org/browse/OBS-3132
Basically it was the session_regenerate_id() call that caused it, so I adopted the https://www.php.net/manual/en/function.session-regenerate-id.php suggested way.
Well it works for me, try it out if you have the same issue.
/niklas _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/3bbbd945c333b8013d0dfa23058f65b9.jpg?s=120&d=mm&r=g)
Commited in r10128.
Please all who have troubles with lost session (logouts), check with latest rolling release.
Niklas Larsson via observium wrote on 15/10/2019 16:04:
Hi,
I spent some time figuring out why I got randomly logged out from the webpage and submitted a patch to https://jira.observium.org/browse/OBS-3132
Basically it was the session_regenerate_id() call that caused it, so I adopted the https://www.php.net/manual/en/function.session-regenerate-id.php suggested way.
Well it works for me, try it out if you have the same issue.
/niklas _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/1d5677c93c1fa3ea1b4fbfba80c328a9.jpg?s=120&d=mm&r=g)
Is the Fix also available for the CE version?
Mit freundlichen Grüßen
Von: observium observium-bounces@observium.org Im Auftrag von Mike Stupalov via observium Gesendet: Dienstag, 15. Oktober 2019 21:54 An: Niklas Larsson via observium observium@observium.org Cc: Mike Stupalov mike@observium.org Betreff: Re: [Observium] Fix for random logout
Commited in r10128.
Please all who have troubles with lost session (logouts), check with latest rolling release.
Niklas Larsson via observium wrote on 15/10/2019 16:04:
Hi,
I spent some time figuring out why I got randomly logged out from the webpage and submitted a patch to https://jira.observium.org/browse/OBS-3132
Basically it was the session_regenerate_id() call that caused it, so I adopted the https://www.php.net/manual/en/function.session-regenerate-id.php suggested way.
Well it works for me, try it out if you have the same issue.
/niklas _______________________________________________ observium mailing list observium@observium.orgmailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
-- Mike Stupalov Observium Limited, http://observium.org
![](https://secure.gravatar.com/avatar/3bbbd945c333b8013d0dfa23058f65b9.jpg?s=120&d=mm&r=g)
yah, currently no :(
Wissen, Tobias (EDV) via observium wrote on 18/10/2019 13:07:
Is the Fix also available for the CE version?
Mit freundlichen Grüßen
*Von:*observium observium-bounces@observium.org *Im Auftrag von *Mike Stupalov via observium *Gesendet:* Dienstag, 15. Oktober 2019 21:54 *An:* Niklas Larsson via observium observium@observium.org *Cc:* Mike Stupalov mike@observium.org *Betreff:* Re: [Observium] Fix for random logout
Commited in r10128.
Please all who have troubles with lost session (logouts), check with latest rolling release.
Niklas Larsson via observium wrote on 15/10/2019 16:04:
Hi, I spent some time figuring out why I got randomly logged out from the webpage and submitted a patch to https://jira.observium.org/browse/OBS-3132 Basically it was the session_regenerate_id() call that caused it, so I adopted the https://www.php.net/manual/en/function.session-regenerate-id.php suggested way. Well it works for me, try it out if you have the same issue. /niklas _______________________________________________ observium mailing list observium@observium.org <mailto:observium@observium.org> http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
-- Mike Stupalov Observium Limited, http://observium.org
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (3)
-
Mike Stupalov
-
Niklas Larsson
-
Wissen, Tobias (EDV)