Welcome Guest, Not a member yet? Register   Sign In
Remember Me Implementation for Codeigniter Session Library
#1

[eluser]Unknown[/eluser]
Hi, I dont want to use other session libraries because I developed Codeigniter Session Library for my private functions. So I must implement a remember-me functionality on Codeigniter Session library.

There are a lot of discussions around web about this topic but they are generaly about "use other auth lib" or "look other auth lib".

So anyone give me idea for this situation?
#2

[eluser]vrencianz[/eluser]
By default <b>sess_expire_on_close</b> is false meaning that <i>remember me</i> is on.

See http://ellislab.com/codeigniter/user-gui...sions.html for details.
#3

[eluser]InsiteFX[/eluser]
For true remember me you will need to create a cookie and store it on the clients system!

I create a hash code and store it in the cookie and database record!
If the hash codes match then I auto login the user else display the login form.
The hash code use sha512 hashing the username/password/ and a salt value.




Theme © iAndrew 2016 - Forum software by © MyBB