Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

strange behaviour when changing network

Status
Not open for further replies.

FrankExp

MIS
Dec 11, 2002
44
NL
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
 
Does the external address have IIS?
 
The internal address and the external address refer to the same implementation on the same machine. And yes, this is an IIS-implementation.

Frank van de Kant
 
I found that calling the component start.asp will give the correct results. On the internal address as well as on the external address.

So, it looks as if the application just loses the info when it is called from another website.

Frank van de Kant
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top