Stoneware Support


Knowledge Base


TID550 ( s550 )
QuickLinkhttp://www.stone-ware.com/swql.jsp?kb=s550
CategoryCookies
SummaryObtain Cookie via .NET
DetailsHow can I get the stoneware session id when using a .net application.
ResolutionFirst thing is to make sure that your .net server is running through stoneware in a virtual webapp. This is imporant so that the stoneware cookie is available.

Here is sample code for obtaining the stoneware cookie.


<%
Dim cookie As HttpCookie
cookie = Request.Cookies.Get("CStoneSessionID")
If cookie Is Nothing Then
Response.Write("SessionID cookie is null")
Else
Response.Write(cookie.Value)
End If
%>