Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > ASP Forms
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 27th, 2003, 12:43 PM
Authorized User
 
Join Date: Sep 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Netscape caching pages for session variable

I want to protect a page from user's book marking the URL .
I am checking this with a session variable at the top of each page:
Session variable is set to true in a login page if user id and paswword matches.

' asp checking session

<%@LANGUAGE = VBScript %>
<%
Option Explicit
Response.Expires = -1000

Response.Buffer = True

if Session("Authenticated") <>True then
Response.write ""
     Response.write "Sorry ! You are not authorized to view this page"

  else
 %>
<html> Load main page here</html>
<% end if%>

Problem is this is working fine with IE but Netscape still lets user to bypass login page and load this protected page !!!
I will appreciate your help.
 
Old September 29th, 2003, 06:54 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 111
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Response.AddHeader "cache-control", "no-cache, private"

Cheers
Ken

www.adOpenStatic.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Persistent Session State accross multiple pages Admiral1701 Classic ASP Professional 1 December 13th, 2006 06:46 PM
Processing all pages, app or session wide VictorVictor ASP.NET 2.0 Basics 3 July 22nd, 2006 05:19 AM
.NET|Issue with .aspx pages caching at Server side purtimalhotra ASP.NET 1.0 and 1.1 Professional 0 July 6th, 2006 12:13 AM
.NET|Issue with .aspx pages caching at Server side purtimalhotra ASP.NET 1.0 and 1.1 Basics 0 July 6th, 2006 12:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.