Set user to guest before deleting session.
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 16 Jan 2013 20:01:59 +0000 (21:01 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 16 Jan 2013 20:01:59 +0000 (21:01 +0100)
wcfsetup/install/files/lib/system/session/SessionHandler.class.php

index e53ea02af31df1c1ae45c9b2004160dd32a2ab7b..00108f2e8a8437d6ad76e5b9d9211b69f941069f 100644 (file)
@@ -552,6 +552,9 @@ class SessionHandler extends SingletonFactory {
         * Deletes this session and it's related data.
         */
        public function delete() {
+               // set user to guest
+               $this->changeUser(new User(null), true);
+               
                // remove session
                $sessionEditor = new $this->sessionEditorClassName($this->session);
                $sessionEditor->delete();