Setting a cookie:
'save the new db to a cookie
Dim newCookie As HttpCookie = New HttpCookie("intranet")
newCookie("database") = strDatabase
newCookie.Expires = Now.AddDays(10)
Response.Cookies.Add(newCookie)
Reading the cookie:
'retrieve the database from a cookie
If Not Request.Cookies("intranet") Is Nothing Then
Session("database") = Request.Cookies("intranet")("database")
Else
Session("database") = "NGB01"
End If