A
Anthony Williams
Hi gang,
This one looks like a bug (
As you may or may not know, setting session management in web.config to use
cookieless sessions causes the ASP.NET runtime to munge a session ID into
the URL, in the format http://yourapplicationpath/(Session.SessionID)/...
which saves numerous headaches when it comes to storing state across page
requests and sessions.
It works very well for us - our website at www.listersgroup.co.uk uses
cookieless sessions to good effect, with one minor drawback. It appears that
whenever I use Response.Redirect(...) to move the client to a new page, the
ASP.NET runtime wasn't built to handle it when cookieless sessions were
being used.
Example:
Create a new Web Form in your chosen language. Set the web.config file to
use cookieless sessions:
<sessionState mode="InProc" cookieless="true" timeout="30" />
Make a condition in your webform in the Subroutine which is called via
Page.OnLoad:
if (Request.QueryString("redirect") = "true") {
Response.Redirect("thisWebForm.aspx");
}
or
If Request.QueryString("redirect") = "true" Then
Response.Redirect("thisWebForm.aspx")
End If
Watch as the session ID, which is munged into the URL, is magically ignored
and a new one is chosen and re-munged in.
This is causing loads of problems, and I'm looking to find a solution which
will work regardless of location. If no-one else beats me to it, I'll post a
workaround as soon as I'm done!
Help?
Kind regards,
Anthony
This one looks like a bug (
As you may or may not know, setting session management in web.config to use
cookieless sessions causes the ASP.NET runtime to munge a session ID into
the URL, in the format http://yourapplicationpath/(Session.SessionID)/...
which saves numerous headaches when it comes to storing state across page
requests and sessions.
It works very well for us - our website at www.listersgroup.co.uk uses
cookieless sessions to good effect, with one minor drawback. It appears that
whenever I use Response.Redirect(...) to move the client to a new page, the
ASP.NET runtime wasn't built to handle it when cookieless sessions were
being used.
Example:
Create a new Web Form in your chosen language. Set the web.config file to
use cookieless sessions:
<sessionState mode="InProc" cookieless="true" timeout="30" />
Make a condition in your webform in the Subroutine which is called via
Page.OnLoad:
if (Request.QueryString("redirect") = "true") {
Response.Redirect("thisWebForm.aspx");
}
or
If Request.QueryString("redirect") = "true" Then
Response.Redirect("thisWebForm.aspx")
End If
Watch as the session ID, which is munged into the URL, is magically ignored
and a new one is chosen and re-munged in.
This is causing loads of problems, and I'm looking to find a solution which
will work regardless of location. If no-one else beats me to it, I'll post a
workaround as soon as I'm done!
Help?
Kind regards,
Anthony