I have a requirement, that if user is logged in from one browser, then she couldn't be logged in from any where else.
What I did is when user is logged in I entered her status in log table as logged in and when she logged out I update that status.
Problem comes: what if she didn't logged out and just close browser?
Any help or improvement will be appreciated in advance:-) I am using codeigniter as back end tool.