ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

implement remember me for login in CI

August 12, 2009 2:18am

Subscribe [3]
  • #1 / Aug 12, 2009 2:18am

    mrcoder

    31 posts

    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

    Derek Allard

    3168 posts

    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

    mrcoder

    31 posts

    ya your r right but i have to implement it .do u have any source code for that.

  • #4 / Aug 12, 2009 2:30am

    Derek Allard

    3168 posts

  • #5 / Aug 12, 2009 2:35am

    mrcoder

    31 posts

    ok thank u derek

  • #6 / Aug 12, 2009 2:37am

    mrcoder

    31 posts

    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

    Derek Allard

    3168 posts

    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

    Festy

    7 posts

    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.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases