Came up with this:
In global.asax:
Dim s As String =
Request.Cookies.Item("ASP.NET_SessionId").Value
If Not s Is Nothing Then Application(s) = "the error text"
Response.Redirect("GenericErrorPage.aspx")
In the error page:
Dim s As String = String.Empty
s = HttpContext.Current.Session.SessionID
Dim ee As String = Application(s).ToString
'display ee on the page
What do you think? A viable solution?
The article you mentioned says that the sessionid is unique between
restarts.
/m
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:Os**************@TK2MSFTNGP03.phx.gbl...
"kurt sune" <ap*@apa.comwrote in message
news:eW*************@TK2MSFTNGP06.phx.gbl...
I am trying to use the SessionID as a key as proposed in:
http://groups.google.se/group/micros...9c79bb10436bec
>
You *CANNOT* use SessionID as any sort of unique key, because it is not
guaranteed to be unique in all cases.
See the following from the MSDN Library:
http://msdn2.microsoft.com/en-gb/library/ms524326.aspx