login/logout problem in PHP
Posted
by user356170
on Stack Overflow
See other posts from Stack Overflow
or by user356170
Published on 2010-06-02T07:45:27Z
Indexed on
2010/06/02
7:53 UTC
Read the original article
Hit count: 152
i have a question. I have a website in which i am giving security like login id and password( as usual). No what i want is that, 1) I don't want to allow a single user to login in different machine at the same time. 2) For this i am using a column in database which is keeping the current status of user(i.e. loging/logout). I am allowing user to login only when has session has not closed and status is login. 3) So my problem is that when i am logging out manually. it is closing the session as well as updating the database with status "logout". 4) but when i am closing the window from Cross buttonat top right corner. it is closing the ssion but table data is still "login". so later on i can't be able to login into the same user. 5) So how could i solve this problem. Please help me!
© Stack Overflow or respective owner