M
M O J O
Hi,
I have a test application, that is a Web.config, a Global.asax,
default.aspx and a final.aspx page.
When a user enters my application, I want session_start to always
redirect him to the final.aspx page.
Here's my Web.config:
<configuration>
<system.web>
<identity impersonate="true" />
<compilation debug="true" defaultLanguage="vb" explicit="true" />
<globalization requestEncoding="iso-8859-1"
responseEncoding="iso-8859-1" />
<sessionState mode="SQLServer" cookieless="false" timeout="15"
sqlConnectionString="...cut out..." />
<customErrors mode="Off" />
</system.web>
</configuration>
Here's my Global.asax:
Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
Response.Redirect("~/final.aspx")
End Sub
Here's my default.aspx:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim i As Integer = 10
End Sub
My final.aspx has no code.
When I execute my application on my develloper machine, everything works
perfect, but when I execute it on the production server (an exact copy
of my solution), the session_start is not fired.
I've tried to delete the website and create it again. Still the same
problem ... session_start wont fire.
Any idea?? ... I'm going crazy here.
)
Thanks!!!
M O J O
I have a test application, that is a Web.config, a Global.asax,
default.aspx and a final.aspx page.
When a user enters my application, I want session_start to always
redirect him to the final.aspx page.
Here's my Web.config:
<configuration>
<system.web>
<identity impersonate="true" />
<compilation debug="true" defaultLanguage="vb" explicit="true" />
<globalization requestEncoding="iso-8859-1"
responseEncoding="iso-8859-1" />
<sessionState mode="SQLServer" cookieless="false" timeout="15"
sqlConnectionString="...cut out..." />
<customErrors mode="Off" />
</system.web>
</configuration>
Here's my Global.asax:
Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
Response.Redirect("~/final.aspx")
End Sub
Here's my default.aspx:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim i As Integer = 10
End Sub
My final.aspx has no code.
When I execute my application on my develloper machine, everything works
perfect, but when I execute it on the production server (an exact copy
of my solution), the session_start is not fired.
I've tried to delete the website and create it again. Still the same
problem ... session_start wont fire.
Any idea?? ... I'm going crazy here.
Thanks!!!
M O J O