www.webdeveloper.com
Results 1 to 2 of 2

Thread: Remember Me (not literally)

  1. #1
    Join Date
    Jul 2006
    Posts
    653

    Remember Me (not literally)

    Hi,

    I have built a custom built site in Codeigniter.

    I have added a [] Remember Me check box to my sign in form.

    I want the browser to remember the users details and keep them logged in for 1 week if they select that option.

    I understand that using cookies can cause some security threats.

    Can anyone offer any advice on how i should go about setting this up, thanks in advance for your help...

  2. #2
    Join Date
    Jul 2007
    Location
    Wisconsin
    Posts
    468
    To maintain a "presence" for that length of time, you really are reduced to using either cookies or localStorage.

    To increase security, you can combine the "local" reference variable that doesn't contain any specific information (perhaps just an keyed md5 hash of a known value) with a server-side reference variable in a database (using the same keyed md5 hash) that contains the rest of the user's information that can be used to "revive" the session.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles