M
MS ASP.NET
I'm using sql server session state and wrote a class to wrap current
session. I need to know if what I am doing will result in users
sharing session data.
'----------------------------------
'------- Session Wrapper --------
'-----------------------------------
Imports System.Web.SessionState
Public Class EmployeeSession
Private _session As HttpSessionState
Sub New()
_session = HttpContext.Current.Session
End Sub
Property EmployeeID() As Integer
Get
Return _session("EmployeeID")
End Get
Set(ByVal Value As Integer)
_session("EmployeeID") = Value
End Set
End Property
End Class
'-----------------------------------
'-----------------------------------
'-------- Sub on a web form -------
'-----------------------------------
Private Sub DoSomething
Dim empSession as new EmployeeSession
empSession.EmployeeID=someValue
End Sub
'----------------------------------
Any ideas or help appreciated
Steve
session. I need to know if what I am doing will result in users
sharing session data.
'----------------------------------
'------- Session Wrapper --------
'-----------------------------------
Imports System.Web.SessionState
Public Class EmployeeSession
Private _session As HttpSessionState
Sub New()
_session = HttpContext.Current.Session
End Sub
Property EmployeeID() As Integer
Get
Return _session("EmployeeID")
End Get
Set(ByVal Value As Integer)
_session("EmployeeID") = Value
End Set
End Property
End Class
'-----------------------------------
'-----------------------------------
'-------- Sub on a web form -------
'-----------------------------------
Private Sub DoSomething
Dim empSession as new EmployeeSession
empSession.EmployeeID=someValue
End Sub
'----------------------------------
Any ideas or help appreciated
Steve