Hello,
I’ve got a ASP.NET MVC application which uses a custom provider that inherits from CredentialsAuthProvider.
My problem is that the sessionExpiry is not honorated (I mean if I refresh the page even if the expiryperiod is elaped I got the user still authenticated)
Here’s how I register the plugin feature
var authFeature =
new AuthFeature(
() => new IFMSAuthUserSession(),
new[] { authProvider },
htmlRedirect: appSettings.Get(Resources.NotLoggedUrlkey, "~/login")
);
authFeature.SessionExpiry = TimeSpan.FromSeconds(10);
Plugins.Add(authFeature);
What am I doing wrong?
Thanks
I use the Servicestack 4.5.6