Session Problem

M

Marcelo

Hi, I'm running a web application in a server where I play with session
variables. In this case, language.
Now when I want to do the same at my local IIS, it won't accept a value for
that variable.

I use the following code at Global.asa
<script Language="VBScript" RUNAT=Server>
Sub Application_OnEnd()
End Sub

Sub Application_OnStart()
Application("NumSession") = 0
Application("NumVisited") = 0
End Sub

Sub Session_OnEnd()
Application("NumSession") = Application("NumSession") - 1
End Sub

Sub Session_OnStart()
Application("NumSession") = Application("NumSession") + 1
Application("NumVisited") = Application("NumVisited") + 1
Session("language")=2
End Sub
</script>

When running at my hosting service, it accepts the language variable and so
I can work on my sql queries.

When running at my local machine it has 0 as a value on language variable.

Do you have an idea on what the problem is?
I'd appreciate any help. Thanks in advance,

Marcelo.
 
M

Marcelo

I've solved it. The problem was at IIS where I had to create a folder under
Default website as a virtual website.

Thanks anyway,

Marcelo.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top