I would like to make my website to allow only one session at a time. For example, let say user has login to my website on firefox, if the user login again to another browser
You can use the following algorithm
invalidate() the session and decrement the value in the databaseCredits to Bozho because he posted this, answering to a question here