473,853 Members | 1,984 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Internet Explorer creates temp file from an asp page.

My training piece is in Authorware. The user logs in with last name and a
four-digit number. Authorware sends this user identifier to an asp page
called db_read.asp. This file sends a SQL SELECT command to a Microsoft
Access database. The database returns either the record that was selected or
a "no record" message. The db_read.asp file relays this information to
Authorware. If a record was returned, Authorware displays it. If there is
no record, Authorware displays the message "You have logged in for the first
time".

Later when the user exits Authorware , the Authorware file takes one of two
actions. If a record was returned from the database following log-in, then
Authorware runs an asp file called db_update.asp to update the record in
Access. If no record was return, Authorware runs an asp file called
db_add.asp to add a new record to the database.

All of this runs fine on my computer which has IE 6.0, Win XP and IIS. My
customer has IE 6.0, Win 2000 and IIS and the customer has an issue. The 1st
login goes correctly. Authorware displays the messge "You have logged in for
the first time" and upon exit, a new record is added to the database. During
this login, however, an internet temporary file is created for the file
db_read.asp. When the customer logs in for the second time with the same
last name and four-digit number, the screen again displays "You have logged
in for the first time" (the screen should have displayed the record). After
exit, the database has added a second, identical record (the database should
have updated the first record, not add a second one).

After the 1st login, if the customer deletes the temporary file, the 2nd
login runs correctly.

IE does not create temporary files for the other two asp files.

Any suggestions on how I can resolve this issue?

Thanks.

Jim Bowman
Jul 22 '05 #1
10 1884
=?Utf-8?B?SmFtZXNfMTA x?= wrote on 09 apr 2005 in
microsoft.publi c.inetserver.as p.general:
All of this runs fine on my computer which has IE 6.0, Win XP and IIS.
My customer has IE 6.0, Win 2000 and IIS and the customer has an
issue. The 1st login goes correctly. Authorware displays the messge
"You have logged in for the first time" and upon exit, a new record is
added to the database. During this login, however, an internet
temporary file is created for the file db_read.asp. When the customer
logs in for the second time with the same ....


Well, not exactly.

The html rendering of the asp output is cached on the client,
not the asp file itself.

Use:

<% Response.Expire s = 0 %>

and try again.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 22 '05 #2
Thank you Evertjan. In researching this code, sometimes I see it as
Response.Expire s and at other times it's Response.expire s. Is uppercase vs
lowercase not important?

The html rendering of the output for the file db_read.asp is cached but the
output for the files db_add.asp and db_update.asp is not cached. Any
thoughts on why the output for one file is cached and not the other two?

Thank you.

Jim

"Evertjan." wrote:
=?Utf-8?B?SmFtZXNfMTA x?= wrote on 09 apr 2005 in
microsoft.publi c.inetserver.as p.general:
All of this runs fine on my computer which has IE 6.0, Win XP and IIS.
My customer has IE 6.0, Win 2000 and IIS and the customer has an
issue. The 1st login goes correctly. Authorware displays the messge
"You have logged in for the first time" and upon exit, a new record is
added to the database. During this login, however, an internet
temporary file is created for the file db_read.asp. When the customer
logs in for the second time with the same ....


Well, not exactly.

The html rendering of the asp output is cached on the client,
not the asp file itself.

Use:

<% Response.Expire s = 0 %>

and try again.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 22 '05 #3
=?Utf-8?B?SmFtZXNfMTA x?= wrote on 09 apr 2005 in
microsoft.publi c.inetserver.as p.general:
"Evertjan." wrote:
=?Utf-8?B?SmFtZXNfMTA x?= wrote on 09 apr 2005 in
microsoft.publi c.inetserver.as p.general:
> All of this runs fine on my computer which has IE 6.0, Win XP and
> IIS.
> My customer has IE 6.0, Win 2000 and IIS and the customer has an
> issue. The 1st login goes correctly. Authorware displays the
> messge "You have logged in for the first time" and upon exit, a new
> record is added to the database. During this login, however, an
> internet temporary file is created for the file db_read.asp. When
> the customer logs in for the second time with the same ....
>
Well, not exactly.

The html rendering of the asp output is cached on the client,
not the asp file itself.

Use:

<% Response.Expire s = 0 %>

and try again.


[please do not toppost on usenet]
Thank you Evertjan. In researching this code, sometimes I see it as
Response.Expire s and at other times it's Response.expire s. Is
uppercase vs lowercase not important?
No it is not. ASP server directives and VBS are not case sensitive.

However Jscript is!
The html rendering of the output for the file db_read.asp is cached
but the output for the files db_add.asp and db_update.asp is not
cached. Any thoughts on why the output for one file is cached and not
the other two?


Did you add

<% Response.Expire s = 0 %>

as the first line of all these 3 asp pagefiles???

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 22 '05 #4
I have not yet added Response.Expire s=0 to any asp page.

There are two computer systems. On mine (WinXP, IE 6.0), no temporary files
are created for the output of any of the 3 asp files.

On my customer's system (Win2000, IE 6.0), a temp file is created for the
output of db_read.asp but not for db_add.asp or db_update.asp. I will have
the customer add the needed code on Monday, Apr 11.

The db_read.asp file contains the code Response.write (var name). The files
db_add.asp and db_update.asp do not contain Response.write. They form an SQL
INSERT or UPDATE statement, create a connection to a database, use the
execute method to send the SQL query, and then close the database connection.
Does this explain the fact that the customer's computer system saves the
output of db_read.asp as a temp file and not db_add.asp or db_update.asp?

Should Response.expire s=0 be placed at the beginning of the asp page or is
the location not important?

Thanks.

Jim

"Evertjan." wrote:
=?Utf-8?B?SmFtZXNfMTA x?= wrote on 09 apr 2005 in
microsoft.publi c.inetserver.as p.general:
"Evertjan." wrote:
=?Utf-8?B?SmFtZXNfMTA x?= wrote on 09 apr 2005 in
microsoft.publi c.inetserver.as p.general:

> All of this runs fine on my computer which has IE 6.0, Win XP and
> IIS.
> My customer has IE 6.0, Win 2000 and IIS and the customer has an
> issue. The 1st login goes correctly. Authorware displays the
> messge "You have logged in for the first time" and upon exit, a new
> record is added to the database. During this login, however, an
> internet temporary file is created for the file db_read.asp. When
> the customer logs in for the second time with the same ....
>

Well, not exactly.

The html rendering of the asp output is cached on the client,
not the asp file itself.

Use:

<% Response.Expire s = 0 %>

and try again.


[please do not toppost on usenet]
Thank you Evertjan. In researching this code, sometimes I see it as
Response.Expire s and at other times it's Response.expire s. Is
uppercase vs lowercase not important?


No it is not. ASP server directives and VBS are not case sensitive.

However Jscript is!
The html rendering of the output for the file db_read.asp is cached
but the output for the files db_add.asp and db_update.asp is not
cached. Any thoughts on why the output for one file is cached and not
the other two?


Did you add

<% Response.Expire s = 0 %>

as the first line of all these 3 asp pagefiles???

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 22 '05 #5
=?Utf-8?B?SmFtZXNfMTA x?= wrote on 09 apr 2005 in
microsoft.publi c.inetserver.as p.general:
I have not yet added Response.Expire s=0 to any asp page.
I wrote: [please do not toppost on usenet]


Please follow usenet netiquette.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 22 '05 #6
Sorry, I was not familiar with topposting.

You asked: Did you add
<% Response.Expire s = 0 %>
as the first line of all these 3 asp pagefiles???

I have not yet added Response.Expire s=0 to any asp page.

There are two computer systems. On mine (WinXP, IE 6.0), no temporary files
are created for the output of any of the 3 asp files.

On my customer's system (Win2000, IE 6.0), a temp file is created for the
output of db_read.asp but not for db_add.asp or db_update.asp. I will have
the customer add the needed code on Monday, Apr 11.

The db_read.asp file contains the code Response.write (var name). The files
db_add.asp and db_update.asp do not contain Response.write. They form an SQL
INSERT or UPDATE statement, create a connection to a database, use the
execute method to send the SQL query, and then close the database connection.
Does this explain the fact that the customer's computer system saves the
output of db_read.asp as a temp file and not db_add.asp or db_update.asp?

Should Response.expire s=0 be placed at the beginning of the asp page or is
the location not important?

Jim
Jul 22 '05 #7
=?Utf-8?B?SmFtZXNfMTA x?= wrote on 09 apr 2005 in
microsoft.publi c.inetserver.as p.general:
Sorry, I was not familiar with topposting.

You asked: Did you add
<% Response.Expire s = 0 %>
as the first line of all these 3 asp pagefiles???

I have not yet added Response.Expire s=0 to any asp page.
Please do!
There are two computer systems. On mine (WinXP, IE 6.0), no temporary
files are created for the output of any of the 3 asp files.
No, no, teporary files are something else as cache files.

The ASP-file is and remains on the server, and is the source for a html
file that is sent to the client [with an asp extension]

cashe files have nothing to do with asp, but are always generated by IE
on the client. ONLY the [view-source invisible] header of the sent [html-
like] file contains a expiration directive, that can be set with thwe
above asp command <% Response.Expire s = 0 %>
On my customer's system (Win2000, IE 6.0), a temp file is created for
the output of db_read.asp but not for db_add.asp or db_update.asp. I
will have the customer add the needed code on Monday, Apr 11.
OK.
The db_read.asp file contains the code Response.write (var name). The
files db_add.asp and db_update.asp do not contain Response.write.
No matter:

<% Response.write "<br>Hello World<br>" %>

and

<% = "<br>Hello World<br>" %>

and

<%
t = "<br>Hello World<br>"
Response.write t
%>

and

<br>Hello World<br>

render the same html code.
They form an SQL INSERT or UPDATE statement, create a connection to a
database, use the execute method to send the SQL query, and then close
the database connection.
Does this explain the fact that the customer's computer system saves
the
output of db_read.asp as a temp file and not db_add.asp or
db_update.asp?
No, because only html code [and possibly clientside scripting, if you
entered that,] reaches the client. The client [read clientside browser]
does not know and does not care if the html originated from serversided
database interrogation. If you doubt that, do extensive clientside view-
sourcing on your files.
Should Response.expire s=0 be placed at the beginning of the asp page
or is the location not important?


It is customary and probably necessary to put it at the beginning, at
least before the code that renders html output.

===========

[The above way of answering is called interquoting and is the preferred
way of the one to many communication used on usenet the last 30 years]

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 22 '05 #8
Let's see if I understand what you have taught me.

When the client runs my authoring program and the program calls any of the
asp pages (db_read.asp, db_add.asp or db_update.asp), Microsoft IIS reads
and executes the commands in the asp page. Then IIS sends the resulting html
page to the client browser which saves certain data in a cache. If the
authoring program again calls the same asp page, the client browser may
ignore the resulting html page and instead use the data cached earlier.

To prevent this inaccuracy, I place Response.expire s=-1 as the first command
in my asp page so it reads:

<%@ language=VBScri pt%>
<% Option Explicit %>
<%

Response.expire s = -1

(then all current code)

I am using -1 because one article indicated that time zone differences
between the server and client would affect Response.expire s=0.
Response.expire s=-1 always causes the cached data to expire immediately.

Is all of this correct?

Jim
Jul 22 '05 #9
Jim wrote on 10 apr 2005 in
microsoft.publi c.inetserver.as p.general:
Let's see if I understand what you have taught me.
"you"?

Who are you talking to, Jim?

You are posting to thousands of readers all over the world now via usenet
and many more in the years to come via the usenet archive.

So please quote part of the post you are reacting on, starting the quote
with particulars of the sender. see above.

This is not email. This is not the web. This is usenet.
When the client runs my authoring program
What authoring program?
On the client's machine?
Doesn't the client simply run a browser, i.c. IE?
and the program calls any of
I expect you simply mean a clientside browser.
the asp pages (db_read.asp, db_add.asp or db_update.asp), Microsoft
IIS reads and executes the commands in the asp page. Then IIS sends
the resulting html page to the client browser
Yes, a html page with a .asp extension, but not the asp source file.
which saves certain data in a cache.
No, not certain data but that whole html page, including expiry date and
some other things, [all depending on the "correctnes " browser, but let us
presume said IE]
If the authoring program again calls the same asp page,
the client browser may ignore the resulting html page and instead use
the data cached earlier.
Yes if the page is not expired and the cache is not disabled or
overfilled and ...
To prevent this inaccuracy,
It is not an inaccuracy, but a very usefull idea for the web, preventing
lots of unnecessary trafic and waiting time. In your special case, for
some special pages, you don't want this behavour.
I place Response.expire s=-1 as the first
command in my asp page so it reads:

<%@ language=VBScri pt%>
<% Option Explicit %>
<%

Response.expire s = -1
<%@ language=VBScri pt%>
<%
Response.expire s = 0
Option Explicit
(then all current code)

I am using -1 because one article indicated that time zone differences
between the server and client would affect Response.expire s=0.
Response.expire s=-1 always causes the cached data to expire
immediately.
No, I think all these are stored as UTC and anyway that one minute won't
cover even one hour of timezone difference, let alone 23 hours.

It will perhaps cover clientside clock innaccuracies, but one can see
clients with a local clock set to a year 2012 date. So why one minute, if
the effects exists at all, which I am not sure about?
Is all of this correct?
Make your own conclusions. ;-}
Jim


--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 22 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
10224
by: phpninja | last post by:
Greetings, I was wondering if it is possible to delete someone's temporary internet files with javascript? Basically I'm am using a PDF module called HTML_ToPDF. The pdf module takes some output based on queries and creates a pdf, and it works great. My problem is, if i make a change to the data in the database, then rerun that exact pdf routine (done by clicking a form button that reposts the data), the pdf that is refreshed in the...
1
9634
by: googlegroups | last post by:
Hi I need to get access to refresh a page of internet explorer. Call Shell("C:\Program Files\Internet Explorer\Iexplore.exe http://www.google.co.uk", 1) This works, but it creates a new instance of iexplore everytime. So instead of launching lots of iexplore windows, does anyone know enough about vba to suss how to make iexplore refresh a page.
4
2352
by: Nicolás Castagnet | last post by:
Hi, I write this post because I notice a strange behavior related with "Temporary Internet Files" and maybe some of you can help me to understand it. I am working in a web application with ASP.NET. Recently, I group of user have problems with it because the values of the sessions were not stored correctly (the application save the username in a login page, then other page try to get it and the result was always ""). We restart the web...
6
2103
by: pradeep_TP | last post by:
I am facing a strange problem with my web site. Afer reinstalling the web application on the web server, I am getting a dialog box for each page. The dialog box has the following information. "This page contains both secure and nonsecure items. Do you want to display the nonsecure items." It was not happening before. I have searched in internet for removing the dialog box. This is the solution that I got
11
11633
by: Wendy | last post by:
Hello, I have a program that does the following: When a user clicks on a row in a VB.NET datagrid, it will open a web page in Internet Explorer (that corresponds to that item in the selected row in the datagrid). It will automatically print that web page, and then it will close the Internet Explorer window. I have code that works perfectly when a regular web page is opened, however when a pdf web page is opened the printing never...
2
2708
by: tomasio | last post by:
Dear NG-Readers, I want to position a textbox (.kasten) to the right of my website, but I need to have 1px of the background-image of the ancestor box (.content) visible. So I calculated 270px for the textbox and 271px for the background-image and gave .kasten a value of "margin-right: 1px;". Firefox displays it as expected, but Internet Explorer pushes .kasten one 1px too far to the left thus overlapping the background-image of
2
1570
by: VeNoM00 | last post by:
Hello, i have a WebBrowser imported form SHDocVw and i need to filter the data before it arrives to the browser (for example i want to delete all the <scripttag). I tried to realize a proxy server but it's hard and i don't like this idea. I also tought of reading the file written in the temporary folder but i don't like neither this idea. Does anybody know another way? Maybe a way to get control on the tcp/ip connection that the IE AX...
3
11505
by: laredotornado | last post by:
Hi, This problem only affects PC IE. On a secured page (a page visited via https), there is a link that reads -- "Download HTML File". The link connects to this page <?php require("../../util_fns.php"); session_start();
5
3433
by: rogersw8n | last post by:
Some how, some way the account that creates folders under Temporary Internet files has been changed to a domain account for VS 2003 and VS 2005. I recently installed VS 2005. All seemed to be ok afterwards. I did no development for a couple of weeks, came back and I kept receiving Access Denied to Microsoft.Net\Temporary Internet Files\... Access is Denied. ASPNET had full access to that file and all subfolders. The website I am...
0
9898
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9748
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10670
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10358
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9506
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5736
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5934
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4549
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.