Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# login 10/25/2007 3:55 PM
I know this is only likely to occur for specific cases (usually a difficult customer that just does not understand cookies), but in order to service calls that must support a cookieless sessionState 'all' href urls must be fed through the method:

System.Web.HttpContext.Current.Response.ApplyAppPathModifier(anyurlstring);

Urls should generally look like this in a cookieless sessionState:

http://localhost/cms/(S(wafzle45mcg3gyijgrwxv355))/Default.aspx

It is not hard to see how this will upset cuyahoga.

I have looked at making the required changes in UrlHelper, but that would make things far too complicated.

The only real solution is to wrap all url strings like so:

[any].NavigateUrl = HttpContext.Current.Response.ApplyAppPathModifier(urlString);

This would only really be required for about 80 lines of code.

The method call is safe in that it will only write the session ID once no matter how many times it is called on the same url.

The PageHandler.ProcessRequest also appears to get a parsed (ID stripped) 'context.Request.RawUrl', so the incoming call stack is not affected (I did have an ID cleanup method, but turned out not to be required).

Hope this helps/makes sense!

I could send my patch if it helps?

Best regards,

Andy aka MadShad
# login 10/25/2007 5:11 PM
Anything fed to LoadControl also needs to be parsed and the ID removed.