Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-03-2005, 04:47 PM   PM User | #1
jaywhy13
Regular Coder

 
Join Date: Dec 2004
Location: Jamaica
Posts: 592
Thanks: 2
Thanked 0 Times in 0 Posts
jaywhy13 is an unknown quantity at this point
Internet Explorer Warning: Page Expired

I don't know if I'm posting this in the right forum. If I'm not let me know. But part of me tells me that the answer to my question resides within the coding capabilities of ASP........


I'm doing up a messaging system. After the user deletes the message I want the user to be unable to go Back... as i, if they hit the back button in their browser it shoots up the "Warning: Page Expired" page.

jaywhy13 is offline   Reply With Quote
Old 01-03-2005, 06:30 PM   PM User | #2
NEExt
New Coder

 
Join Date: May 2004
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
NEExt is an unknown quantity at this point
Put this at the top of the page you want to expire and it should work.

Code:
<%
Response.Expires = 60
Response.Expiresabsolute = Now() - 1
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"
Response.CacheControl = "no-cache" 
Response.AddHeader "Pragma", "no-cache" 
Response.Expires = -1 
%>
NEExt is offline   Reply With Quote
Old 01-04-2005, 07:14 AM   PM User | #3
jaywhy13
Regular Coder

 
Join Date: Dec 2004
Location: Jamaica
Posts: 592
Thanks: 2
Thanked 0 Times in 0 Posts
jaywhy13 is an unknown quantity at this point
Thumbs up

THanks alot man!

Hey there's one other thing.
When users sign out of my system. It takes them to a signout.asp page that deletes their record from the database that would signify activity.

I've put a redirect to carry the users to another page right? I dropped the code on the signout page. But users click Back it takes them back in?

It is because of the redirect? How would i delay the redirect?
jaywhy13 is offline   Reply With Quote
Old 01-05-2005, 02:08 AM   PM User | #4
jaywhy13
Regular Coder

 
Join Date: Dec 2004
Location: Jamaica
Posts: 592
Thanks: 2
Thanked 0 Times in 0 Posts
jaywhy13 is an unknown quantity at this point
Exclamation


I have yet another concern.... I have designed a messaging sytem right....

WHen the user is in their inbox i don't wanna necessarily have the code u supplied at the top of the page because I want the users to be able to use the back button to come out of a message for example and return to the listing of messages (their inbox).

But then if they click the Delete button, it deletes the message and then reloads the page. I want the page they came from to expire!

How would I do that?

Also, is there a way to say delete/make all pages expire when the user signs out? So that despite how many times the back button is pressed they won't end back up in their inbox!
jaywhy13 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:53 PM.


Advertisement
Log in to turn off these ads.