Re: Auth sessions not working in firefox or ie7

2012-08-01 Thread Tharanga Amaratunga
Im having the same problem with cakePHP2+ . Please let me know if you have 
found a solution.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Auth sessions not working in firefox or ie7

2008-06-30 Thread dr. Hannibal Lecter

Is Firefox/IE set to accept cookies? And keep them until they expire?

On Jun 29, 10:02 pm, peele <[EMAIL PROTECTED]> wrote:
> I'm using the AuthComponent and experimenting with cake and making a
> simple user system. I thought I had things working but the session
> isn't maintained using firefox or ie7, works with safari (all on
> windows, using wamp).
>
> I've tried using security low, medium and high, php sessions and cake,
> all with the same result. After logging in on firefox or ie7 it
> redirects back to the login page with no flash message, also creates 4
> sessions, 5 if trying to directly access home. Safari logs in,
> redirects appropriately with only creating one session.
>
> app_controller.php
> class AppController extends Controller {
>
>         var $components = array('Auth');
>
>         function beforeFilter() {
>                 $this->Auth->loginAction = array('controller' => 'users',
> 'action' => 'login');
>                 $this->Auth->loginRedirect = array('controller' => 'pages',
> 'action' => 'display', 'home');
>                 $this->Auth->deny('*');
>                 $this->Auth->authorize = array('model' => 'User');
>                 $this->Auth->autoRedirect = true;
>         }
>
> }
>
> ?>
>
> users_controller.php
>  class UsersController extends AppController {
>
>         var $name = 'Users';
>
>         function login() {
>
>         }
>
>         function logout() {
>                 $this->Session->setFlash('Logout');
>                 $this->redirect($this->Auth->logout());
>         }
>
> }
>
> ?>
>
> user.php
>  class User extends AppModel {
>
>         var $name = 'User';
>
>         function isAuthorized($user, $controller, $action) {
>                 return true;
>         }
>
> }
>
> ?>
>
> Sorry for being long winded. Its my first time using cake, I've spent
> the last day and a half searching this group, and other resources.
> Thank you for your help. If anything else would help I'll post it as
> soon as I know whats needed.
>
> Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Auth sessions not working in firefox or ie7

2008-06-30 Thread peele

I'm using the AuthComponent and experimenting with cake and making a
simple user system. I thought I had things working but the session
isn't maintained using firefox or ie7, works with safari (all on
windows, using wamp).

I've tried using security low, medium and high, php sessions and cake,
all with the same result. After logging in on firefox or ie7 it
redirects back to the login page with no flash message, also creates 4
sessions, 5 if trying to directly access home. Safari logs in,
redirects appropriately with only creating one session.

app_controller.php
class AppController extends Controller {

var $components = array('Auth');

function beforeFilter() {
$this->Auth->loginAction = array('controller' => 'users',
'action' => 'login');
$this->Auth->loginRedirect = array('controller' => 'pages',
'action' => 'display', 'home');
$this->Auth->deny('*');
$this->Auth->authorize = array('model' => 'User');
$this->Auth->autoRedirect = true;
}

}
?>

users_controller.php
Session->setFlash('Logout');
$this->redirect($this->Auth->logout());
}

}
?>

user.php


Sorry for being long winded. Its my first time using cake, I've spent
the last day and a half searching this group, and other resources.
Thank you for your help. If anything else would help I'll post it as
soon as I know whats needed.

Thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---