How can i make a code in php that user can not login twice by using 2 different browsers.
I have in my database a colom user_session.
If he logs in in Ie 2 times ,the second time he re-direct to the main page.
In firefox or chrome my code works too.
But if you use 2 browsers you can login twice.
My site is a chatsite.
with 2 user inlog 1 inlog is invisible and one not.
they both can type and go to different rooms.
i dunno why you can not see the second login his name has gone.
please help.
I have in my database a colom user_session.
If he logs in in Ie 2 times ,the second time he re-direct to the main page.
In firefox or chrome my code works too.
But if you use 2 browsers you can login twice.
My site is a chatsite.
with 2 user inlog 1 inlog is invisible and one not.
they both can type and go to different rooms.
i dunno why you can not see the second login his name has gone.
please help.
Comment