Display Expired Page

C

Carl

for security purposes how can i set the requested page to expired or is set
to inactive, after a period of time.
 
C

Carl

where can i put the tags? i have try the syntax for Reponse.Expires
[=Number] and even Reponse.ExpiresAbsolute but it seems that page is still
active.

thanks.
 
R

Ray at

Perhaps you're not understanding the response.expires thing. That's for
controlling caching, not for disabling access to a page.

You can do something like:

<% If Now() > #2004-02-15# Then Response.Write "This page is no longer
available." : Response.End %>

--

Ray at home
Microsoft ASP MVP


Carl said:
where can i put the tags? i have try the syntax for Reponse.Expires
[=Number] and even Reponse.ExpiresAbsolute but it seems that page is still
active.

thanks.


Steven Burn said:
Response.Expires <when>
http://msdn.microsoft.com/library/en-us/iissdk/iis/ref_vbom_resope.asp

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)


is
set
 
E

Evertjan.

Perhaps you're not understanding the response.expires thing. That's for
controlling caching, not for disabling access to a page.

You can do something like:

<% If Now() > #2004-02-15# Then Response.Write "This page is no longer
available." : Response.End %>

If the page is expired [after the 15th],
the file content can just be:

This page is no longer available.
 
R

Ray at

I think the OP was looking for a way to disable the pages without having to
maintain the contents of them. At least, that was what I assumed. If
that's not the case, then I think the answer would be to just delete the
files. :]

Ray at work

Evertjan. said:
Perhaps you're not understanding the response.expires thing. That's for
controlling caching, not for disabling access to a page.

You can do something like:

<% If Now() > #2004-02-15# Then Response.Write "This page is no longer
available." : Response.End %>

If the page is expired [after the 15th],
the file content can just be:

This page is no longer available.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,145
Messages
2,570,826
Members
47,371
Latest member
Brkaa

Latest Threads

Top