implement remember me for login in CI

#1
[eluser]mrcoder[/eluser]
Hi,

Iam new to CI.can u please tell me the how to implement remember me for login in CI.can any one provide source code .

Thanks in Adavance

#2
[eluser]bigtony[/eluser]
Take a look at the [url="http://ellislab.com/codeigniter/user-guide/helpers/cookie_helper.html"]Cookie Helper[/url]

What you could do is store a cookie on the user's browser when they login. Then in future your site can try to load the cookie, and if exists with correct value you can do an auto-login. You'll need to set the cookie to exists for a while, say a few days or whatever makes sense to you.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.