Welcome Guest, Not a member yet? Register   Sign In
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.




Theme © iAndrew 2016 - Forum software by © MyBB