partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 4e6de0dd399adf535884e72f1c7f525d14416b01
parent c8b462097320e112aaa76307ffaf9df18d567518
Author: Felicitus <felicitus@felicitus.org>
Date:   Thu, 30 Jun 2011 02:24:17 +0200

Brutally kill the existing session

Diffstat:
Msrc/de/RaumZeitLabor/PartKeepr/Session/Session.php | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/de/RaumZeitLabor/PartKeepr/Session/Session.php b/src/de/RaumZeitLabor/PartKeepr/Session/Session.php @@ -31,6 +31,10 @@ class Session { unset($_SESSION); session_start(); + $query = PartKeepr::getEM()->createQuery("DELETE FROM de\\RaumZeitLabor\\PartKeepr\\Session\\Session s WHERE s.sessionid = :session"); + $query->setParameter("session", session_id()); + $query->execute(); + $this->sessionid = session_id(); }