HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
chek html cach
Post new topic   Reply to topic    HTML Help Forum Index -> ASP
View previous topic :: View next topic  
Author Message
sanjeev



Joined: 23 Nov 2007
Posts: 31

PostPosted: Sun Dec 30, 2007 7:41 pm     chek html cach Reply with quote

how can use the page HTML caching attribute. i don't know how can use it
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8269
Location: Castle Rock CO USA

PostPosted: Mon Dec 31, 2007 5:42 am     Reply with quote



Use it for what? The computer uses it depending on the user's settings. For example, if I tell the browser to check / download a URL everytime I visit it, then it should download each image, CSS, JS etc. However, if the same image is used a few times on that page, it is downloaded once to help speed up the process.

_________________
Corey
Toll Free Fax Numbers | Merchant Accounts
sanjeev



Joined: 23 Nov 2007
Posts: 31

PostPosted: Mon Dec 31, 2007 7:40 pm     Reply with quote

Hi
i am working on login person if logout then don't go to back using standared button without relogin
Code:

<%@ Language=VBScript %>
<% Option Explicit %>
<html>
<head>
<title>Voice Of Baraunians</title>
<!--#include file="front.inc"-->
</head>
<body ">
<%If Request.Cookies("empno") = "" Then%>
  <div style="Position:Absolute; top:150; left:250;background-color: #f0f0f0">
    <center><h2><font face="arial" color='blue'>You are not authorised to view this page. You will be prosecuted for this action</font></h2></center>
  </div>
<%Else%>
  <div style="Position:Absolute; top:150; left:100">
    <h2>Logging Out ............</h2>
    <h4>Wait a moment.</h4>
  </div>
<%
  Dim conn
  Dim R
  Dim vempno
  Set conn = Server.CreateObject("ADODB.Connection")
  conn.Mode = adModeReadWrite
  conn.Open("DSN=Oracle; USER ID = gatepass; PASSWORD = gp")
  Set R = Server.CreateObject("ADODB.Recordset")
  R.Open "Select empno from emp_authority", conn, adOpenStatic, adLockOptimistic, adCmdText
  vempno = Request.Cookies("empno")
  R.Find "empno = " & vempno & ""
  Response.Cookies("empno") = ""
  R.Close
  Set R = Nothing
  conn.close
  Set Conn = Nothing
  Response.Redirect "message3.asp"
End If
%>
</body>
</html>
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8269
Location: Castle Rock CO USA

PostPosted: Tue Jan 01, 2008 6:00 am     Reply with quote

Then it is ASP you are referring to (moved to the ASP zone). It sounds like you need to check the session / cookies to see if the user is logged out, not necessarily the HTML cache.

ASP 101 has some samples to take a look at on how to check cookies / sessions, depending on what you are using.

_________________
Corey
Toll Free Fax Numbers | Mile High Merchant Accounts
sanjeev



Joined: 23 Nov 2007
Posts: 31

PostPosted: Tue Jan 01, 2008 8:08 pm     Reply with quote

so please guide me where is the problems in my code becouse if user is logout and redirect to login page if he press the back button on browser he goes all pages open when he is login.But i wants if user logout then no any information in browser to go back without login .
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> ASP All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial