Group,
I am having trouble setting and getting session variables in
VB.NET
MVC on our server. Currently on my local machine I set them using
this approach in my global.asax.vb page:
While reader.Read()
If CInt(reader(0).ToString) > 0 Then
Session("superadmin") = "yes"
Else
Session("superadmin") = "no"
End If
End While
and call them this way in an aspx page:
<% If Session("superadmin") = "yes" Then %>
blah blah blah
<% end if %>
Locally this works fine.
However, once I move this code to our web server, the session variable
never seems to be accessable once the global finishes executing...
Anyone have any advice for this situation? I need to set the session
variable from the start to dictate priveledges and so forth...
annoying that is works localy but never on the server.
Thanks in advance.
Lee W.