Reading thru the cookbook on cookies and sessions but I cannot get it to
work. I have the toolbar installed so I can see the data easier. I have this
in my app_controller:
 
var $components = array('Auth', 'Acl', 'RequestHandler', 'Cookie',
'DebugKit.Toolbar');
      var $helpers = array('Html', 'Form', 'Javascript', 'Mailto', 'Time',
'Ajax');
      var $cookieName = 'mysite';
      var $cookieKey = '^SIp35555';
      var $cookieTime = 7200;
 
in my User login () 
i have this just to test it out
 
// Grab some data from the User table and set them to the cookie array
                  $cookie = array();
                  $cookie['user_id'] = $this->Auth->user('id');
                  $cookie['firstname'] = $this->Auth->user('firstname');
                $cookie['slug'] = $this->Auth->user('slug');
                  
                  $this->Session->write('Auth.User', $cookie);
 
but it apears nothing is being written anywhere. Can someone point out what
I am missing or doing wrong?
 
 
Dave


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to