Solved

Anyway to hide QueryString in browser?

Posted on 2000-04-03
5
251 Views
Last Modified: 2008-01-16
I use some links to go to a ASP page using ?Field=name   etc...
But later in the browser you can see these strings, is there anyway to hide the querystring so the browser doesn't keep them in the list. I'm using IE 5 by the way.
0
Comment
Question by:fredmastro
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 1

Expert Comment

by:bennyliaw
ID: 2680747
You can create frameset and target the link to a frame. This way the URL (and the query string) will not be shown in the location bar unless the user right click and view the property of the page.

Note: If you want to see the web page on the full window and do not want to divide the page into frames which will restrict the page, you can create a frameset with a dummy frame with 0 pixel height.

--benny
0
 
LVL 2

Expert Comment

by:MoMarvi
ID: 2680963
If you are using a form, what about using POST instead of GET.
0
 
LVL 2

Author Comment

by:fredmastro
ID: 2681200
oh well I was using Links, no forms on these links. I have the page already in a Frame setting where it hides it from the browser initialy, but if you start to type in the address, the querystrings still come up.
0
 
LVL 2

Author Comment

by:fredmastro
ID: 2681202
If no one can answer that question, how about them using ASP to refresh a page when it loads it back up. I keep getting old data and have to manually hit refresh
0
 
LVL 15

Accepted Solution

by:
robbert earned 50 total points
ID: 2681261
Regarding the URL list in the browser - that's not an ASP issue.

Regarding the browser's cache:

Put on top of your page:
Response.Expires = 0
Response.ExpiresAbsolute = Date - 1
Response.AddHeader "pragma", "no-cache" 'IE4+, for Proxy server cache
Response.AddHeader "cache-control", "private" 'IE5

But, you can 100% sure that the browser doesn't cache the document when you call a unique URL by adding a random querystring, only:

<a href="myPage.asp?Rnd=<%=ServerURLPathEncode(Session.SessionID & Now)%>">
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question