So its a ASP.NET problem where two users using the same machine, same browser.
- User 1 logs in the domain.
- User 1 changes some data without saving it.
- User 2 logs in the domain in a separate tab.
- User 1 switches back to his tab and saves the data.
- User 1 actually saved the data into User 2!!
This is caused by the following mechanism:
- Different tabs in the same browser seems to share the same session id.
- We are storing user auth in cookie and the cookie is shared between tabs (same domain)
Therefore, when User 1 request to save, it is recognized as User 2 since the cookie has been updated to User 2.
So I'm wondering if there's any other methods to prevent this from happening, other than: 1. Use cookieless session so the session is embedded in uri. 2. Always include a hidden field in page to indicate which user owns the page.
Regards,