DataObjects/Person.php
authorEdward <edward@roojs.com>
Wed, 27 May 2015 09:09:32 +0000 (17:09 +0800)
committerEdward <edward@roojs.com>
Wed, 27 May 2015 09:09:32 +0000 (17:09 +0800)
DataObjects/Person.php

index 361d972..6ddd22f 100644 (file)
@@ -239,7 +239,9 @@ class Pman_Core_DataObjects_Person extends DB_DataObject
             
             // force a logout - without a check on the isAuth - as this is called from there..
             $db = $this->getDatabaseConnection();
-            $sesPrefix = $ff->appNameShort .'-'.get_class($this) .'-'.$db->dsn['database'] ;
+            $appname = empty($ff->appNameShort) ? $ff->project : $ff->appNameShort;
+            $sesPrefix =$appname.'-' .get_class($this) .'-'.$db->dsn['database'] ;
+       
             $_SESSION[get_class($this)][$sesPrefix .'-auth'] = "";
             return false;