<%
Response. Cookies (" aaa ")="123456" 'value is random number
The Response. Cookies (" aaa "). The Expires=DateAdd (" n ", 1, Now ())
% & gt;
When the page B judgment Cookies after 1 minute expired aaa is empty output access illegal
& lt; %
If the request. Cookies (" aaa ")="" then
Response. Write (" access to illegal ")
End the If
% & gt;
I just set up above the Cookies expiration time will not be able to output & lt; %=request. The Cookies (" aaa ") % & gt;
Trouble master to help find out what is going on,
My idea is that on page for page A is front end message form, page B was received form page, so the page B banned direct access, there is no better way?