:: 20.02.2008 03:49:04
data is an array with your username and password...
why not just use $this->Auth->login($data) ?
Auth component should take care of the rest
:: 09.03.2008 06:51:48
Interesting, just what I'm looking for! I've tried implementing this code into my own auth system which is pretty similar I think, but can't get it to work yet. I'm not sure what the problem is, but I think the cookie isn't being set, after login I look at the cookies set by entering this in my browser:
Unfortunately all i get is something like Cakephp= "random string" I don't think this is correct, or is it?? Anyway it's not working yet, when I close my browser and visit my site again I'm logged out :(, any ideas on what I need to change??
Thanks in advance!
:: 10.03.2008 10:00:48
Thanks for the reply, I've done some more testing using more simple cookie->write and read examples. I've found out that cookies are working, they are hashed but not stored in cakephp = "random value" so I'm pretty sure that the cookie I'm trying to set in the users login action isn't working right??
Maybe you could contact me to have a look at my code if you have some spare time, for now I'll try some more and see what I can come up with, any help would be appreciated though!
btw, maybe you could adjust your comments a bit so line breaks are displayed, comments can become a bit hard to read like this.