tags:

views:

57

answers:

1

Hi, I am using cakephp framework to build my application. I want that, whenever a user registers he is automatically logged in and shown a particular page. Please tell me how do i achieve this functionality? using xampp, with php 5.2 and mysql 5.0 on winXP.

+1  A: 

Well, it comes down to the following:

  • When your user is registered, store his login credentials
  • Call $this->Auth->login()
  • Redirect to your page

See more info about Auth::login() here:

http://api.cakephp.org/class/auth-component#method-AuthComponentlogin

dr Hannibal Lecter
thanks, will give it a try. :-)
Gaurav Sharma