Reputation: 1
I focused the problem to this piece of code:
Private sub Page_Load(byval sender as system.object, byval e as system.eventArgs) handles myBase.Load
if (not IsPostBack) then
'Do nothing
end if
If (session("IsAlive")=1) then
WriteToLog("true")
Else
WriteToLog("false")
End if
When I entry to the page_load in the first time (not on PostBack), it writes "true". But when I entry in the second time (when click on button or dropDownList), it writes "false".
Its a program that works fine on another server, and now we have a new server to which I copied the programs and configured them in iis similar to the old server.
In the config file I have
<sessionState mode="InProc" cookieless="false" timeout="60" />
as specified on the old server.
Also, when I run the program from the server, everything works fine. The problem only happens when running from the local station (on any computer).
Please help
Upvotes: 0
Views: 38