asp.net mvc - MVC Custom Authorization Attribute Not Working for AJAX Redirect -


i attempting implement ajax mvc4 redirect solution when users session expires. solution i'm trying out second response thread(by lukled): asp.net mvc session expiration

the solution seemed work quite on first ajax request tried on. others tried on; however, did not appear run controller or attribute server-side code before being redirected login page 302 response code. more specifically, tried debug controller's initialize , onactionexecuting methods , attributes authorizecore override, none of them hit. true when add authenticationattribute global filter.

any ideas of going on? haven't been able figure out difference between requests redirected , ones hit service. same when compare request headers side-by-side.

the project i'm using aspx projects, wondering if amiss in web.config. however, compared setting vanilla mvc4 project , looked pretty similar. have membership, role, , site map providers configured in web.config. doubt causes issues though.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -