I have a web role hosting a Unity3D
application. In the application I have a connection screen. Like any other connection screen you can fill your login and password to access the core of the application (a game for example).
All of those information are stored in a Windows Azure Database
and I can create user using an admin panel. This panel is hosted in another Web Role and can access the database.
If I create a new user, I can connect with those information in my application. There is no problem. But now if I want to change the user password using the admin panel the value is well changed in the database but in my application I can't connect with the new password, the old one is always used.
The user creation and password change are done with the Razor Entity Framework
.
I don't understand because in my Unity3D application
I do a request to the web role and the user controller and the role returns the old password and not the new one. But in my db and my admin panel there is the new one... How can this be ? How can I solve this ?
Is it a Response caching problem ?
How I find and return User:
DatabaseContext db = DatabaseContextProvider.WebDatabase;
string login = Request.Form["login"]; //The login typed by user
var users = from u in db.Users where u.Login == login select u;
User[] userArray = users.ToArray<User>();
Then I fill the Response to Unity3D with some Header like Response.AddHeader("data", userArray[0].data.ToString());
If you need any information that can help you solving my problem, just ask.
Thanks a lot for your help !