Results 1 to 3 of 3

Thread: session

  1. #1
    Join Date
    Jan 2006
    Posts
    10

    Unanswered: 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?

  2. #2
    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 %>

  3. #3
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •