NYCPHP Meetup

NYPHP.org

[nycphp-talk] Experts help needed (Sessions)

Joseph Crawford codebowl at gmail.com
Thu Aug 11 08:52:38 EDT 2005


Chris,

the current way i have things working is like this.

On the first page load set $_SESSION['HTTP_USER_AGENT']
On the next page load compare the agents.
If they dont match increment the counter
otherwise continue on as normal

Once the counter hit's a limit of say 3 it shows the password box and tells 
the user they need to verify they are the same user. If they enter the 
correct password, everything is reset, otherwise a password check counter is 
incremented. If they enter the password wrong 3 times the system will 
destroy the session and assume it's not the correct user.

My questions is, did i get a clear understanding of what you were saying to 
do and did i implement this the proper way according to your thoughts?

-- 
Joseph Crawford Jr.
Codebowl Solutions, Inc.
1-802-671-2021
codebowl at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20050811/a4df640f/attachment.html>


More information about the talk mailing list