URL Rewriting in .NET behaves badly with cookieless sessions -
I am currently using HTTPModule to relay the URL. I am using my custom transform feature, which gives me permission to supply assembly with a method of real URL transforms.
I have a Kukul session on, and this URL is causing some interference with the writer.
So, let's assume the path on my server is:
But I want to rewrite the URL to see the path like this:
I have created a script to output the following:
- Request.Url (from my codehead)
- Request.RawUrl (from my codehead)
- document.location (From javascript)
I type the following in my address bar:
When I have a cookie session, everything works the same. Is as much as you want. My script outputs the following values:
- As shown in Request.Url - Request Appears as RUUrl /rewrittenpath/index.aspx- - Appears as document.location - The address bar in the URL stays unchanged from what I originally typed.
However, when I have the Cuculius session enabled, things are very much. My script outputs the following values:
- The request.Url is shown as - Request Appears as RAUUrl / active path / index. Aspx - appears as document.location - the address bar changes in the URL somehow, so it looks like this:
What I have to do is keep the script written in the address bar again. I would like a document, place to write again I would like to request. RUUrl to re-write the page back Is this possible with cookie sessions? Or does NIT's Kukul Session system make this behavior impossible?
Thank you for your time and support.
The cookeless session only enters the session ID instead of the session cookie in the URL. Therefore, your URL mapping for URLRewriter.NET should take into account this behavior. Are you doing this If you want to be able to walk with or without cookies, then I hope you have the rules to match the cookie and cookie url patterns.
Comments
Post a Comment