473,378 Members | 1,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Web page needs to timeout

I'm working on an intranet website that is password
protected. It's only got 2 pages: the login page and a
data entry page. On that page, the user can enter some
data and the page refreshes and shows the results. But he
can leave the page open, go back, forward, or refresh and
get to previous screens. I've tried all kinds of things
like setting Response.Expires = -1, redirecting them back
to the login page (which prevents them from seeing the
results). But the bottom line is the user can still use
Back and Forward and Refresh. I've GOT to time out the
page and they GOT to log back in. They can't have ANY way
to get back to, view, or use any page that has ever been
loaded in all of eternity. I don't care if I have to nuke
their history file and all their cookies to get there. I
really need help....

Jul 21 '05 #1
3 1138
Hi Sandman

I would try: Response.Cache.SetCacheability(HttpCacheability.No Cache) in
your server code. That should do it.

HTH

James.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
"sandman" <an*******@discussions.microsoft.com> wrote in message
news:09****************************@phx.gbl...
I'm working on an intranet website that is password
protected. It's only got 2 pages: the login page and a
data entry page. On that page, the user can enter some
data and the page refreshes and shows the results. But he
can leave the page open, go back, forward, or refresh and
get to previous screens. I've tried all kinds of things
like setting Response.Expires = -1, redirecting them back
to the login page (which prevents them from seeing the
results). But the bottom line is the user can still use
Back and Forward and Refresh. I've GOT to time out the
page and they GOT to log back in. They can't have ANY way
to get back to, view, or use any page that has ever been
loaded in all of eternity. I don't care if I have to nuke
their history file and all their cookies to get there. I
really need help....

Jul 21 '05 #2
It's only half the solution. It only works when IsPostBack
is false. So the user can go back to the original page but
can't go forward.
-----Original Message-----
Hi Sandman

I would try: Response.Cache.SetCacheability (HttpCacheability.NoCache) inyour server code. That should do it.

HTH

James.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

"sandman" <an*******@discussions.microsoft.com> wrote in messagenews:09****************************@phx.gbl...
I'm working on an intranet website that is password
protected. It's only got 2 pages: the login page and a
data entry page. On that page, the user can enter some
data and the page refreshes and shows the results. But he can leave the page open, go back, forward, or refresh and get to previous screens. I've tried all kinds of things
like setting Response.Expires = -1, redirecting them back to the login page (which prevents them from seeing the
results). But the bottom line is the user can still use
Back and Forward and Refresh. I've GOT to time out the
page and they GOT to log back in. They can't have ANY way to get back to, view, or use any page that has ever been
loaded in all of eternity. I don't care if I have to nuke their history file and all their cookies to get there. I really need help....

.

Jul 21 '05 #3
It's only half the solution. It only works when IsPostBack
is false. So the user can go back to the original page but
can't go forward.
-----Original Message-----
Hi Sandman

I would try: Response.Cache.SetCacheability (HttpCacheability.NoCache) inyour server code. That should do it.

HTH

James.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

"sandman" <an*******@discussions.microsoft.com> wrote in messagenews:09****************************@phx.gbl...
I'm working on an intranet website that is password
protected. It's only got 2 pages: the login page and a
data entry page. On that page, the user can enter some
data and the page refreshes and shows the results. But he can leave the page open, go back, forward, or refresh and get to previous screens. I've tried all kinds of things
like setting Response.Expires = -1, redirecting them back to the login page (which prevents them from seeing the
results). But the bottom line is the user can still use
Back and Forward and Refresh. I've GOT to time out the
page and they GOT to log back in. They can't have ANY way to get back to, view, or use any page that has ever been
loaded in all of eternity. I don't care if I have to nuke their history file and all their cookies to get there. I really need help....

.

Jul 21 '05 #4

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

Similar topics

3
by: Scott | last post by:
I have a page that uses a dataset and times-out causing error messages when the user tries to use the dataset after a timeout. How can I either remove the timeout or wrap my code in error code to...
11
by: Bob | last post by:
In our new .NET web applications, we try to limit the use of SqlConnection to just one instance per page, even if there are multiple accesses to various queries. The thinking behind is that this...
4
by: DavidS | last post by:
First: There are several ways to confuse one regarding session timeout. (1) web.config - <sessionState timeout="20"> (2) IIS Manager | Internet Information Services | ServerNode | Default Web Site...
2
by: Mark Miller | last post by:
I can't seem to find anything about setting the timeout for an individual page. I have a long running post to a page, but the post is done from an applet, so the browser doesn't have a timeout...
4
by: Siang Hwee | last post by:
Hi. I am facing some problem in Asp.net. I am developing a payroll application currently. This is a web-based application. User need to click on "Process" button in order to process the payroll...
1
by: Siegfried Heintze | last post by:
I have a page with a huge session state but extremely low traffic. The default timeout period that is normally sufficient is not. I thougth I was changing the timeout period with the following...
2
by: Siegfried Heintze | last post by:
I made the following change to my web.config file (see fragment below) but does not seem to affect the timeout on my web page. I have a huge session state but since I'm the only one using it, I'd...
4
by: UJ | last post by:
I have a page where the user can upload a video file. As you can guess, this may take a while. Is there a way I can change the session timeout for just this one page? I would also want to change...
6
by: Steve Kershaw | last post by:
Hi, I have an ASP.Net web page that has a timer that needs to be killed when the timer fires off. How can I do this from the master.page? Thanks Steve
2
by: Astrix | last post by:
I have been working on session timeout for an application and I got a lot of help from this discussion Board. My Thanks to all of you. For e.g If i have a website which has multiple pages, I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.