I have a weird problem, hope someone can help me.
On a server I have implemented an ASP-application.
The application is opened by a user by use of a .htm-file like this:
<html>
<BODY onLoad=contents.submit();>
<form name=contents action="http://internaladdress/application/start.asp" method=post>
<input type=text name=name value="test1">
<input type=text name=number value="0001">
</body>
</html>
the component start.asp has this code:
<% Response.Buffer = True
Dim rs
Set rs = Server.CreateObject ("ADODB.Recordset")
Session.Contents("name") = request.form("name")
Session.Contents("number") = request.form("number")
response.write Session.Contents("name")
response.write Session.Contents("number")
response.redirect "next.asp"
%>
the component next.asp has this code:
<%
response.write "name " & Session.Contents("name")
response.write "number " & Session.Contents("number")
%>
So far so good, this works fine
However, when I change the code so the application can be accessed using another network-definition this is what happens:
<html>
<BODY onLoad=contents.submit();>
<form name=contents action="http://externaladdress/application/start.asp" method=post>
<input type=text name=name value="test1">
<input type=text name=number value="0001">
</body>
</html>
the component start.asp has this code:
<% Response.Buffer = True
Dim rs
Set rs = Server.CreateObject ("ADODB.Recordset")
Session.Contents("name") = request.form("name")
Session.Contents("number") = request.form("number")
response.write Session.Contents("name")
response.write Session.Contents("number")
response.redirect "next.asp"
%>
the component next.asp has this code:
<%
response.write "name " & Session.Contents("name")
response.write "number " & Session.Contents("number")
%>
Now by commenting the redirect in the start.asp I can see that the values of the Session.Contents-variables are filled during the execution of the start.asp-component. However during execution of the next.asp component the system loses the values.
So, when I use an internal address of this server it goes well, when I use an external address it loses the information.
Strange is that the first component after the startup does have the info, the second component does not.
The system I want to run the application on is a Windows Server 2003.
Frank van de Kant
On a server I have implemented an ASP-application.
The application is opened by a user by use of a .htm-file like this:
<html>
<BODY onLoad=contents.submit();>
<form name=contents action="http://internaladdress/application/start.asp" method=post>
<input type=text name=name value="test1">
<input type=text name=number value="0001">
</body>
</html>
the component start.asp has this code:
<% Response.Buffer = True
Dim rs
Set rs = Server.CreateObject ("ADODB.Recordset")
Session.Contents("name") = request.form("name")
Session.Contents("number") = request.form("number")
response.write Session.Contents("name")
response.write Session.Contents("number")
response.redirect "next.asp"
%>
the component next.asp has this code:
<%
response.write "name " & Session.Contents("name")
response.write "number " & Session.Contents("number")
%>
So far so good, this works fine
However, when I change the code so the application can be accessed using another network-definition this is what happens:
<html>
<BODY onLoad=contents.submit();>
<form name=contents action="http://externaladdress/application/start.asp" method=post>
<input type=text name=name value="test1">
<input type=text name=number value="0001">
</body>
</html>
the component start.asp has this code:
<% Response.Buffer = True
Dim rs
Set rs = Server.CreateObject ("ADODB.Recordset")
Session.Contents("name") = request.form("name")
Session.Contents("number") = request.form("number")
response.write Session.Contents("name")
response.write Session.Contents("number")
response.redirect "next.asp"
%>
the component next.asp has this code:
<%
response.write "name " & Session.Contents("name")
response.write "number " & Session.Contents("number")
%>
Now by commenting the redirect in the start.asp I can see that the values of the Session.Contents-variables are filled during the execution of the start.asp-component. However during execution of the next.asp component the system loses the values.
So, when I use an internal address of this server it goes well, when I use an external address it loses the information.
Strange is that the first component after the startup does have the info, the second component does not.
The system I want to run the application on is a Windows Server 2003.
Frank van de Kant