Hi,
I need to automatically sign in a user into the system the second time he enters my application. I've tried to do that by using cookies as follows:
if (Page.Request.Cookies["token"] != null)
{
NameValueCollection collection = new NameValueCollection();
collection.Add(
"stoken", Page.Request.Cookies["token"].Value);collection.Add(
"action", "login");collection.Add(
"appctx", "SendMessage.aspx");WindowsLiveAuthLite.
WindowsLiveLogin.User user = login.ProcessLogin(collection); if (user != null){
authenticated =
true;}
}
The user object is correctly created but instead of having the "Sign out" hyperlink I have the "Sign in" one. It seems ProcessLogin function is not authenticating the user even the function is returning the right user information.
Any help will be apreciated,
David