How to get a session value? (wodWebServer / wodWebServer.NET)
Hi Jasmine,
This is a simple sample.
In the ASP.NET Page_Load Event
If Session("ConnectDate") = "" Then
Session("ConnectDate") = Now.ToLongTimeString()
End IF
Label1.Text = Session("ConnectDate")
I need a sample to read the session value in wodWebServer.Net.
BTW, the sample in online help does not work.
WebServer.NET/Help/wodWebServer.NET-WeOnlyDo.Server.WebUser-SessionVars-property.html
If User.SessionVars.Exists("MyCount") Then
User.SessionVars("MyCount") = User.SessionVars("MyCount") + 1
Else
User.SessionVars.Add("MyCount").Value = 1
End If
I could not find a method named "Exists"
Complete thread:
- How to get a session value? - Jeremy, 2014-10-28, 09:43
- How to get a session value? - Jasmine, 2014-10-28, 10:56
- How to get a session value? - Jeremy, 2014-10-29, 03:10
- How to get a session value? - Traveller, 2014-10-29, 09:09
- How to get a session value? - Jasmine, 2014-10-29, 10:05
- How to get a session value? - Jeremy, 2014-10-29, 10:12
- How to get a session value? - Jeremy, 2014-10-29, 03:10
- How to get a session value? - Jasmine, 2014-10-28, 10:56