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
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
August 12, 2009 2:18am
Subscribe [3]#1 / Aug 12, 2009 2:18am
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 / Aug 12, 2009 2:22am
Welcome to CodeIgniter.
You’d want to set a cookie with an expiration date in the future. Depending on your app though, be aware that this could lead to some security concerns if a “good” user logs in, then leaves without logging out. Now a “bad” user can sit down and access the site as if they were logged in. I guess I’m just saying its worth warning your users 😊
#3 / Aug 12, 2009 2:26am
ya your r right but i have to implement it .do u have any source code for that.
#4 / Aug 12, 2009 2:30am
You bet. Cookie Helper userguide page.
#5 / Aug 12, 2009 2:35am
ok thank u derek
#6 / Aug 12, 2009 2:37am
Hi Derek,
Have u implemented flexigrid in ur application.iam trying to implement it.but iam facing some problems
#7 / Aug 12, 2009 2:39am
You’re welcome.
Have u implemented flexigrid in ur application.iam trying to implement it.but iam facing some problems
I have not, sorry. I see you’ve got another thread on it, that’s probably best.
#8 / Aug 17, 2009 7:28am
You can also use database based solution for remember me feature. Just include a field in your user table and check the value every time a user logs in. This way you won’t have to worry about security.