Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide the path in the adress bar

Status
Not open for further replies.

SilentWings

Programmer
Apr 24, 2002
27
0
0
PT
Hi ppl,
I made a asp page that validates a password and then show a html document genereted in Word.
The problem is that after showind the document the path remains in the adress bar. If you remind the path you will not need to know the password anymore, you simply type the path, click "Enter" and you have the document.

I need a way to hide the document's path in the adress bar.
Is that possible?

Tanks in advance.
 
When you check the username/password create a session object if they login successfully e.g.

<%
...
' checked login and is ok so
session(&quot;loggedin&quot;)=1
%>

Then on every page that requires you to be logged in put this at the top of the page

<%
if session(&quot;loggedin&quot;)<>1 then response.redirect &quot;login.asp&quot;
%>
Or whatever your login page is called.

 
There should be no reason to hide the path from the address bar. If you are carrying any sensitive information if the querystring you should really re-thing that.

Instead of using the GET method use POST, or use GET, but redirect directly after processing the to think-you page or something similar, so the querysting won't have to be used.

&quot;Taxes are the fees we pay for civilized society&quot; G.W.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top