 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
sanjeev
Joined: 23 Nov 2007 Posts: 31
|
Posted: Sun Dec 30, 2007 7:41 pm chek html cach |
|
|
|
| how can use the page HTML caching attribute. i don't know how can use it |
|
Corey Bryant

Joined: 15 May 2004 Posts: 8154 Location: Castle Rock CO USA
|
Posted: Mon Dec 31, 2007 5:42 am |
|
|
|
|
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
|
Posted: Mon Dec 31, 2007 7:40 pm |
|
|
|
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

Joined: 15 May 2004 Posts: 8154 Location: Castle Rock CO USA
|
Posted: Tue Jan 01, 2008 6:00 am |
|
|
|
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
|
Posted: Tue Jan 01, 2008 8:08 pm |
|
|
|
| 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 . |
|
|
|
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
|
|
|
|
|
 |
|
|
|
|
|
|