Asp.NET Identity stopped working on Chrome -
for unknown reason, no longer can log in own application on chrome.
this how i'm doing signing in:
[allowanonymous] [httppost] public async task<actionresult> login(loginmodel model) { if (user.identity.isauthenticated) return redirecttoaction("index", "home"); if (!modelstate.isvalid) return view(); var status = await signinmanager.passwordsigninasync(model.login, model.password, true, false); switch (status) { case microsoft.aspnet.identity.owin.signinstatus.success: { int userid = user.identity.getuserid<int>(); if (usermanager.isfirstlogin(userid)) { return redirecttoaction("declaration", "home", new { returnurl = model.returnurl }); } return redirecttolocal(model.returnurl); } default: return view(); } }
i debugged code , passwordsigninasync succeeds, chrome shows no cookies set page. in effect redirection action, marked [authorize] attribute redirects again login page.
i tested site on ie , works correctly, can log in , out , cookie being set correctly.
if can provide more detailed information, tell me.
edit: more details
i've been testing piece of application, date-time sensitive (stops displaying after specific date). changed system time 01 august 2016, logged in , switched now. when stopped working.
what curious, when switch future time, can log in again , session cookie being set correctly. when return "now", can not log in again.
Comments
Post a Comment