[UPHPU] Best way to prevent multiple logins from the same account.
phpninja
phpninja at gmail.com
Thu Apr 5 18:28:25 MDT 2007
Now that I marked Daniel as spam, does anyone have a real reply?
-phpninja
On 4/5/07, Daniel C. <dcrookston at gmail.com> wrote:
>
> On 4/5/07, phpninja <phpninja at gmail.com> wrote:
> > has anyone figured this out, or
> > is it not possible the way I am trying to do it? Thanks in advance.
> dsa
> Hmm, I've got to question your ninja credentials if you don't already
> know how to do this. Here's how I'd do it. First, gather your chi
> into a tight ball near your second chakra. Second, become one with
> the TCP/IP stack. Then, accept that your task is a vast and empty
> void. Daily zazen will help with this. After years of study, you
> will come to see that you are a Buddha and that the answer lies within
> you.
>
> Hope that helps,
> Dan
>
> _______________________________________________
>
> UPHPU mailing list
> UPHPU at uphpu.org
> http://uphpu.org/mailman/listinfo/uphpu
> IRC: #uphpu on irc.freenode.net
>
>>Hello all, I have been hacking some code around to see if it is possible
to prevent multiple >>logins from the same account. That is, if
username/password is currently logged in, and >>someone opens another web
browser and tries to login with that same >>username/password it will then
redirect them out, saying that someone from your account >>is already
currently logged in.
>>I thought the best way of doing this would be adding a logged_in field to
my users table >>and when they complete a successful login, set the field to
yes. And then update it the >>field appropriately if someone clicks "logout"
it would just set the field to no. My problem is >>when a user click the X
button, or hits alt + 4, I do not think javascript can pick that up >>right
to set the logged in status to no via xmlhttp. has anyone figured this out,
or is it not >>possible the way I am trying to do it? Thanks in advance.
More information about the UPHPU
mailing list