Hi,

I want to catch multi-session and logout who makes it. Like if you are working on a Firefox browser and if you login on a IE browser, the first session has to be disabled. Same thing on tabs on firefox, etc...

Only one window session active! How can I do it?

Thanks

    Assuming you're using MySQL to store user credentials...

    Add a column to your users table that will hold the current session id. When logging in, update this column with the session id. That way you'd verify that people are logged in by searching your users table on both their username and their session id.

      Ie and firefox do not share the same sessions hence the seperate login. With the tabs i am not sure if this could be done, why is this needed?

        Its to prevent duping. Duping is making request at same time with two browser windows.

          As brad said, store the session in a table with the users or seperate using there ip address.

            Write a Reply...