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
> <?php
> class UsersController extends AppController {
>
> var $name = 'Users';
>
> function login() {
>
> }
>
> function logout() {
> $this->Session->setFlash('Logout');
> $this->redirect($this->Auth->logout());
> }
>
> }
>
> ?>
>
> user.php
> <?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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---