Hi,

I looked at your code.

1. When you store datas into session you use $this->data, this is good
but it don t contains the vars you are looking for.
$this->data['Login'] is ok because it contains the data provided by
the form.

2. The vars you are looking for are in the $results tab.
Try :

$this->Session->write('usertype',$results['Login']
['login_type_id']);
$this->Session->write('user_id',$results->data['Login']['user_id']);

Let me know your results :)

metasan
http://www.piegteam.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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