Re: Sessions not carying over?

2007-05-02 Thread Enchy
I finally got it working. Cakephp was deleting my session everytime I went to login page somehow. I dont have delete session in the controller class UsersController extends AppController { var $name = 'Users'; var $scaffold; function index() { } function login()

Re: Sessions not carying over?

2007-05-02 Thread Enchy
Ok this is my login page: /admin/index.php/users/login When I redirect to: /admin/index.php/users/index I can print the session onscreen, so this means its working. But the moment I goto /admin/ The root of the site then the session does not appear. Anybody got a solution for this? --~--~--

Re: Sessions not carying over?

2007-05-01 Thread Enchy
Ok here is my problem. This is my login controller: if($success) { $this->Session->write('User', $someone['User']); $test = $this->Session->check('User'); $this->Session->setFlash("bs $test"); //$this->redirect('../');

Sessions not carying over?

2007-05-01 Thread Enchy
Hi I have created to controllers and they use two different tables each. These two controllers are basically copies of each other. I logged in and it goes to the first controller but when I go to second controller it says im not logged in anymore. Im using phpgacl: [code] var $gacl = array(