D
Darrel
I've created a class with a function that grabs/sets a session variable:
Public Class myClass
Shared Function myFunction()
return HttpContext.Current.Session("myVariable")
end function
end class
Is there anything wrong with that? Specifically, am I guaranteed that that
session only belongs to the person viewing the site?
In the past I've ran into issues setting/reading cookies from a shared
function like this when multiple people hit the application at the same
time. What was happening is that it was grabbing other's cookies if the
request managed to overlap.
-Darrel
Public Class myClass
Shared Function myFunction()
return HttpContext.Current.Session("myVariable")
end function
end class
Is there anything wrong with that? Specifically, am I guaranteed that that
session only belongs to the person viewing the site?
In the past I've ran into issues setting/reading cookies from a shared
function like this when multiple people hit the application at the same
time. What was happening is that it was grabbing other's cookies if the
request managed to overlap.
-Darrel