how the page is called directly from URL or <a> tag in other page?

H

haode

I have the page "content.asp" and it is called from the "menu.asp" page.

Two page are on diffenent servers and on different Databases.

Users who request the content.asp page are authenticated when they enter the
"menu.asp" page.

So, if another authentication is required when users enter "conent.asp", it
is redundent, I think.

Finally, I want to reject users requests for content.asp if the page
"contnet.asp" is requested directly from URL.

Are there ways if the page content.asp is called from URL or the <a> tag in
the menu.asp?
 
A

Alexander Popkov

I have the page "content.asp" and it is called from the "menu.asp" page.
Two page are on diffenent servers and on different Databases.

Users who request the content.asp page are authenticated when they enter the
"menu.asp" page.

So, if another authentication is required when users enter "conent.asp", it
is redundent, I think.

Finally, I want to reject users requests for content.asp if the page
"contnet.asp" is requested directly from URL.

Are there ways if the page content.asp is called from URL or the <a> tag in
the menu.asp?

I see two ways to do so:
1) Use HTTP_REFERER. Check this server variable in your content.asp.
2) Use cookies. Set a cookie in menu.asp and check it in content.asp.
 

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
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top