I would like to avoid caching if users are logged in with the form authentication in the administrator group.
I have overridden the cache attribute and have applied it at the controller level, however, the method is not called through the NonAdmin validationcallback!
public class output cache_nonAdam: donutOutputCatchErebrebreak {public override zero-on-operation expensing (Action Exposing Contact Filter Contex) {HttpContext.Current.Response.Cache.AddValidationCallback (NonAdmin, NULL); Base.OnActionExecuting (filterContext); } Private Zero Non Admins (HTTPTontax HTTuTTEX, Object Data, REFTPTITTUS httpValidationStatus) {// - Method Call Not Found! HttpValidationStatus = FormsAuthenticationService.IsLoggedIn ("Admin")? HttpValidationStatus.IgnoreThisRequest: HTTP validity Status.Valid; }}
How can I get non-caching when the user is logged in?
No comments:
Post a Comment