Hello I would like have some functionality on sesstion expired event, I have created next pipleline for sitecore. after my custom action I need to make redirect to login page. but I got excetion on redirect action.
public class SessionEnd2
{
public void Process(SessionEndArgs endArgs)
{
Assert.ArgumentNotNull(endArgs, "args");
//do some stuff here
HttpContext.Current.Response.Redirect("~/login.aspx");
//WebUtil.Redirect("~/login.aspx", false);
}
}
It seems like I can't redirect in this type of piplelines. But I need have way to show user login page. settings in web.config is not works not in None nor Forms mode
<authentication mode="None">
<forms name=".ASPXAUTH" cookieless="UseCookies" loginUrl="~/Login.aspx" timeout="1" slidingExpiration="false" defaultUrl="~/main.aspx" />
</authentication>
в System.Web.HttpResponse.End()
в System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent)
в System.Web.HttpResponse.Redirect(String url)
в MyLib.SessionEnd2.Process(SessionEndArgs endArgs) в d:\Projects\MyProj\Website\SessionEnd.cs:строка 30
в (Object , Object[] )
в Sitecore.Pipelines.PipelineMethod.Invoke(Object[] parameters)
в Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
в Sitecore.Pipelines.CorePipeline.Run(String pipelineName, PipelineArgs args, String pipelineDomain, Boolean failIfNotExists)
в Sitecore.Pipelines.CorePipeline.Run(String pipelineName, PipelineArgs args, String pipelineDomain)
Thanks for any ideas.