Pman.Login.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 26 Jul 2011 14:16:04 +0000 (22:16 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 26 Jul 2011 14:16:04 +0000 (22:16 +0800)
Pman.Login.js

index 4adb8e0..caa822f 100644 (file)
@@ -450,6 +450,9 @@ Pman.Login =  new Roo.util.Observable({
         if (this.disabled) {
             return;
         }
+        
+        
+        
         this.callback = cb; // used for non-pman usage..
         modal = modal || false;
         if (Pman.Login.authUserId < 0) { // logout!?
@@ -480,7 +483,10 @@ Pman.Login =  new Roo.util.Observable({
         this.dialog.show();
         this.dialog.el.unmask(); 
         this.resizeToLogo.defer(1000,this);
-        
+        if (!Roo.state.Manager.getProvider().expires) { 
+            Roo.state.Manager.setProvider(new Roo.state.CookieProvider());
+        }
+         
          
         this.form.setValues({
             'username' : Roo.state.Manager.get('Pman.Login.username.'+appNameShort, ''),