Nancy
Thu Aug 12 15:11:52 CDT 2004
what the client really wants to do is keep users from sharing one
membership, so not allowing two different IPs with the same userID to login
is what i'm really trying to do. routinely dumping the login info from a
table doesn't do much to help with a scenario like this.
i think i'm back to using a javascript 'onUnload' event handler to try to
remove the userID from the application array. pop-ups don't seem like a
very good option, and while i've been able to write some hybrid functions to
change a hidden form field to something else, post, and then carry out asp
logic by using fetching the posted value, i don't think that will work in
this case since the form has to post to a page that will be destroyed a
moment later (sorry for run-on sentence). has anybody found a way to call
asp code directly from javascript or know of another good hack for this sort
of thing?
"Aaron [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
news:e0BWmQKgEHA.3944@tk2msftngp13.phx.gbl...
> > maybe i can
> > write a cookie to client, request it every 5 minutes or so
>
> How are you going to request a cookie from the server every 5 minutes?
> Maybe you should reconsider your strategy about preventing two
simultaneous
> logins. What I would do is prevent two simultaneous logins from the same
IP
> address. That way, you can store the login information in the database,
and
> the database can clean up the expired sessions on a schedule. If your
> session timeout is reasonable, this should not affect the person who shuts
> their browser down at work and logs in when they get home.
>
> --
>
http://www.aspfaq.com/
> (Reverse address to reply.)
>
>