Need Help ASAP: Problem With Logout

Hello all, i have a problem : an applications join logout after another application logged-out.

For illustration :

  1. User1 log in application1

  2. User2 log in application2

  3. User2 log out application 2 --> application1 logged out automatically

Any explanation/solution is highly expected, thank you.

Very interesting!

Something’s on my mind:

When user log in app1 change status e.g. logged_in in app1_db to e.g. 1 (true).

Same approach for app2.

Now you have to query database for logged_in status change (maybe comet etc).

Example:

User log in app1. Status changed to 1. Start checking status in app2_db.

User log in app2. Status changed to 1. Start checking status in app1_db.

User log out app2. Change status to 0. App1 now knows that user log out app2. Change status to 0 in app1_db and log out user immediately from app1.

Probably there are tons of solutions, but maybe you can try with this one.

Cheers :)

Thank you for the explanation ManInTheBox, i’ll try this in the next development.

Regards