Hi everyone!! I have a MVC website and when I execute it, the query string (url) that appears is:
http://localhost:6970/(S(51aegi45qneolxa0oxwuzh55))/default.aspx
what the hell is that strange combination of numbers and letters??? please help!!!!! previously i had been working with the session expires to redirect to one of my views, could be something of that?? i have added the following action filter:
public override void OnActionExecuting(ActionExecutingContext filterContext)
{
HttpContextBase ctx = filterContext.HttpContext;
// check if session is supported
if (ctx.Session != null)
{
// check if a new session id was generated
if (ctx.Session.IsNewSession)
{
// If it says it is a new session, but an existing cookie exists, then it must
// have timed out
string sessionCookie = ctx.Request.Headers["Cookie"];
if ((null != sessionCookie) && (sessionCookie.IndexOf("ASP.NET_SessionId") >= 0))
{
filterContext.HttpContext.Response.Redirect("~/Error/SesionExpirada", true);
}
}
}
base.OnActionExecuting(filterContext);
}
but if I put it in ignore it stills add that rare thing to my urls. Please help!!! thanks