|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Global.asa - different behavior on local and remote server?
On a remote server running W2K and thus IIS 5 I have session variables declared in a global.asa file in the root of the application which are passed and visible on all pages with no problem. This was also the case on my localhost before (127.0.0.1), also on W2K / IIS 5. But now for some reason one variable doesn't pass through at all and the other is taken as a String on the localhost.
The problem area in question in my Global.asa file (which is identical on the remote and local servers) <script language="vbscript" runat="server"> Sub Session_OnStart CInt(Session("indx"))=0 CInt(Session("total"))=0 ... End Sub When I view the values locally with: pprice = Request.QueryString("fpPrice") Session("total") = Session("total") + pprice Response.Write "Index: " & Session("indx") Response.Write "Total: " & Session("total") I get (for example - pprice = 45, and after 3 attempts): Index: Total: 454545 Whereas on the remote server I get: Index: 3 Total: 135 Has anyone else experienced this? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Global.asa - different behavior on local and remote server? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|