I have setup an attribute to redirect the user to a specific action of a
specific controller whenever the session has expired.
I want to specify this in 1 location and use a global filter, so I made a
parameterless constructor for it like so:
public class SessionExpiredAttribute : CheckSessionExpiredAttribute
public SessionExpiredAttribute() : base("SessionExpired", "Home")
public CheckSessionExpiredAttribute( string
actionName, string controllerName)
R# gives me an error: Cannot access non-static method 'SessionExpired' in
I understand the method is not static and in the constructor the instance
should not yet be used, but its not really a method call its a routing
I think this is a bug in R#.