Welcome Guest, Not a member yet? Register   Sign In
Remember Me Setting
#4

[eluser]devbro[/eluser]
I found that extending session is not a very wise idea thanks to the fact that cookies can be copied out. Here is how I got it done:

1. create a special cookies: remeber_me_username, remember_me_hash
2. create a database table that connects the cookies to proper account info.
3. on each page access do the following:
3.1 If user is logged in then ignore
3.2 if user is not logged in and cookies exists then validate cookie/database and call login procedure


Messages In This Thread
Remember Me Setting - by El Forum - 02-22-2010, 10:21 PM
Remember Me Setting - by El Forum - 02-22-2010, 10:53 PM
Remember Me Setting - by El Forum - 02-22-2010, 11:17 PM
Remember Me Setting - by El Forum - 02-22-2010, 11:24 PM
Remember Me Setting - by El Forum - 02-23-2010, 02:01 AM
Remember Me Setting - by El Forum - 02-23-2010, 04:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB