Redirect urls from cookieless session to normal url
-
Hi guys, thanks for looking Im having a little problem with search engines When i launched my site i was using cookiless session, well, actually it was autodetect Search engines crawled my site, and asp.net detected them like cookieless browsers, and some links have the session id in the url Ive set the sessionState cookieless="false" now But still there are some links with the session id What i want to do is to detect when a url has a session id and redirect them to the default page, or even better to the requested page but removing the sessionid Ive tryed this in the global.asax:
Protected Sub Application\_BeginRequest(ByVal sender As Object, ByVal e As System.EventArgs) If Request.Url.ToString.Contains("(S(") Then '"(S(" just for the time being :) Response.Redirect("~/") End If End Sub
But the url always contains a regular url (without the session id, and im using a url with session id in it) What would be the best way to accompilsh my goal?? Thanks in advance
Alexei Rodriguez