At 05:20 PM 11/20/00 -0600, Trey Connell wrote:
>The latter will be accomplished with cookies and the first rule will be
>enforced with a "loggedin" flag in the database. My problem lies in the user
>not explicitly clicking logout when they leave the site. If they explicitly
>click logout, i can change the "loggedin" flag to false so that they can
enter
>again the next time they try.
>
>However, if they do not explicitly logout, I cannot fire the code to change
>the flag in the database.
That's where cron comes in. Just make your flag a time, and update it each
request. cron then removes any that are older than some preset time and
*poof* they are then logged out. They try to access again and you see they
have a cookie, yet are logged out and you say "Sorry, you session has
expired".
>So basically I want to set a cookie that will allow them to enter the site
>under their userid, but I can't allow them to enter if they are currently
>logged in from elsewhere.
Why? What if they want two windows open at the same time? Is that
allowed? That design limitation sounds like it's going to make trouble.
Bill Moseley
mailto:[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]