abeldebeer
05-13-2011, 10:53 AM
Hello,
I am developing an iOS app using ElectroServer. Because of the nature of the platform (mobile device) the connection to the server is less reliable and connection events need to be handled properly. I am now struggling with finding the right design and hope you can assist me. The main problem I am trying to tackle is the situation where a user stays logged in on the server when the connection is lost.
Here's a scenario that describes this situation:
(Note: it's required in this application for the user to always use the same login user name, since it will be logged in a database)
- The user is logged in
- The wireless connection is interrupted
- The user can not send an explicit logout request because there is no connection, obviously
- The wireless connection is restored
- The user can not log in using the same user name, because a user of this name is still logged in on the server
- It is not possible to send a logout request, because this action requires a login
How do I make sure the original user is logged out so I can make a clean login?
Thanks a lot in advance!
Abel.
I am developing an iOS app using ElectroServer. Because of the nature of the platform (mobile device) the connection to the server is less reliable and connection events need to be handled properly. I am now struggling with finding the right design and hope you can assist me. The main problem I am trying to tackle is the situation where a user stays logged in on the server when the connection is lost.
Here's a scenario that describes this situation:
(Note: it's required in this application for the user to always use the same login user name, since it will be logged in a database)
- The user is logged in
- The wireless connection is interrupted
- The user can not send an explicit logout request because there is no connection, obviously
- The wireless connection is restored
- The user can not log in using the same user name, because a user of this name is still logged in on the server
- It is not possible to send a logout request, because this action requires a login
How do I make sure the original user is logged out so I can make a clean login?
Thanks a lot in advance!
Abel.