If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Messaging Signout/Delete Challenge

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-04-05, 21:21
jaywhy13 jaywhy13 is offline
Registered User
 
Join Date: Dec 2004
Posts: 7
Red face Messaging Signout/Delete Challenge

I have been provided with the following code to make a page expire:

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
%>


I have one file viewmessages.asp that does all the messaging operations, displayin the entire inbox, showing a particular message, deleting messaging the works..... It just doesn't compose messages.

So whenever a message is deleted, the form reloads the page, and "if" picks up the value in the queryString, deletes the messages and simply redirects the user to the same page.

So hence the reason why i don't necessarily want to always have the code on the page.
However, once the user clicks delete I want to ensure that the user cannot click Back and see the message.

And secondly, when the user clicks signout. They are sent to a page that deletes their current session details from the database and then redirected to the home page.

I want to ensure that no number of times the user presses Back, all those pages will now be expired!

And the user CANNOT end up back in their inbox.
Reply With Quote
  #2 (permalink)  
Old 01-17-05, 06:14
pal19 pal19 is offline
Registered User
 
Join Date: Feb 2003
Location: @ home
Posts: 163
You may use session variables, database table or both to manipulate the session information.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On