Welcome Guest, Not a member yet? Register   Sign In
SESSION:Find current active users in my app???
#8

[eluser]Lorren[/eluser]
I've been using this system for quite some time, and it's worked out very well for me in the past. Smile

1) Token: Create a random token.. something like this:

Code:
md5(rand().time()) // or use sha1 if you prefer

2) Auth System: The 'token' should be enough, though it would probably be best to associate it with the user's id or another unique string. The idea is to provide a way for the session to find the correct db row, but you'll also want to provide some safeguard to session hijacking. Though, CIs cookie encryption may be enough.


Messages In This Thread
SESSION:Find current active users in my app??? - by El Forum - 10-12-2009, 09:13 AM
SESSION:Find current active users in my app??? - by El Forum - 10-12-2009, 11:51 AM
SESSION:Find current active users in my app??? - by El Forum - 10-13-2009, 12:46 AM
SESSION:Find current active users in my app??? - by El Forum - 10-13-2009, 12:47 AM
SESSION:Find current active users in my app??? - by El Forum - 10-13-2009, 09:00 AM
SESSION:Find current active users in my app??? - by El Forum - 10-13-2009, 01:31 PM
SESSION:Find current active users in my app??? - by El Forum - 10-14-2009, 01:26 AM
SESSION:Find current active users in my app??? - by El Forum - 10-14-2009, 11:46 AM
SESSION:Find current active users in my app??? - by El Forum - 10-15-2009, 01:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB