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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-21-06, 01:03
irisclaire irisclaire is offline
Registered User
 
Join Date: Jan 2006
Posts: 10
session

hello!!!

how can i use session on all my pages, wherein when they click on the back button on the tool bar they could not view the previous page?
Reply With Quote
  #2 (permalink)  
Old 02-28-06, 13:55
buzzter66 buzzter66 is offline
Registered User
 
Join Date: Nov 2002
Location: Houston, Texas
Posts: 85
If you have a low number of users, you could create a different session object for each page. Such as sessionHome, sessionNews, sessionBlog, etc.

Then, on page unload, set the value to TRUE. Then use a bit of code like this to give them a "Page Expired" notice if they try to return to that page:

Code:
<% If Session("sessionNews") = "True" %>

Warning: Page Expired.  Please click here to treturn to the correct page.

<% End If %>

<% If NOT Session("sessionNews") = "True" %>

----- Display the normal page content -----

<% End If %>
Reply With Quote
  #3 (permalink)  
Old 03-06-06, 20:26
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
A1ien51's disable the Back Button
http://www10.brinkster.com/A1ien51/S...BackButton.htm
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
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