Why are awkward numbers and letters in my query string??
Posted
by Nicole
on Stack Overflow
See other posts from Stack Overflow
or by Nicole
Published on 2010-06-02T21:41:49Z
Indexed on
2010/06/02
21:44 UTC
Read the original article
Hit count: 201
asp.net-mvc
|querystring
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
© Stack Overflow or respective owner