473,417 Members | 1,452 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,417 software developers and data experts.

Killing The Browser Search History

Merlin1857
Hi, does anyone know how to programatically kill a browsers search history on exiting a web application. I am writing a complex ASP app for a company and to make sure that previously seen pages during a session cannot be recalled using the various tools which allow this in IE for example I would like a method which, if the user logs out properly will delete the entire bowsers memory.
Sep 8 '07 #1
4 1447
jhardman
3,406 Expert 2GB
Hi, does anyone know how to programatically kill a browsers search history on exiting a web application. I am writing a complex ASP app for a company and to make sure that previously seen pages during a session cannot be recalled using the various tools which allow this in IE for example I would like a method which, if the user logs out properly will delete the entire bowsers memory.
I would venture a guess that you can't do this with ASP. possibly with javascript, but those things might not be allowed for matters of security.

You could certainly make it very difficult to find where previous users looked, for example by using only one page which based on user responses opens different include files, the user responses which lead to certain responses could all be kept on server variable so the browser itself would have no idea where it has gone. Does this make sense?

Jared
Sep 8 '07 #2
markrawlingson
346 Expert 100+
Since history files are stored residentially on the computer's hard drive, My best guess at this would be some sort of activeX control. I believe that would be the only way to do it since activeX controls can actually interact with objects on the local drive - which is why spyware became such a massive threat overnight, and is also the reason why all current versions of IE block activeX content by default and notify the user so they can enable it if they want to or leave it disabled if they don't want to take the chance.

Languages such as ASP & javascript couldn't hope to do this on their own.. it's not built into their syntax because it's dangerous. The only way would be to use an object that interacts with the site visitor's hard drive if you wanted to actually add/delete files which is essentially what you're doing by clearing the history. Perhaps a .DLL or .EXE file - or activeX control. But outside of that... I would be surprised, scared, and appalled if you could pull it off without using anything outside of ASP/JavaScript.
Sep 8 '07 #3
I would venture a guess that you can't do this with ASP. possibly with javascript, but those things might not be allowed for matters of security.

You could certainly make it very difficult to find where previous users looked, for example by using only one page which based on user responses opens different include files, the user responses which lead to certain responses could all be kept on server variable so the browser itself would have no idea where it has gone. Does this make sense?

Jared
Jared, Thanks for the reply on that, could you flesh it out a little more please.

Steve
Sep 9 '07 #4
jhardman
3,406 Expert 2GB
Jared, Thanks for the reply on that, could you flesh it out a little more please.

Steve
OK, say you have an online shopping site with sign-in page, catalogue pages, product detail pages, etc. Set them up kind of like frames within the main site, except put the individual pages in include files instead of inner frames. The basic page layout would be a large select case or if then else statement which would give the browser the different pages he could visit. The first case should be if session("userID") = "" and the user should be referred to the log in page. The trickiest part would be to do all of the navigation by form submission sothat the data that determines which page you visit is never stored by the user (if you ever put info in a querystring, the browser will save this info as a different URL you visited, and that is what you are trying to avoid. If all of the info a previous user sent to the page went through forms with hidden inputs no info is saved by the browser except which page he visited, and if they are all the same ASP page the browser only registers the fact that it visited the one page multiple times). So after logging in I show the catalogue page, each item hyperlink (going to a product detail page) could actually set off a javascript function that enters this data in a hidden form field and submits the form. Hidden form fields aren't even filled in by auto-complete browser functions, so new users would never see those.

The drawbacks to this approach are 1- you will have very long, complicated code to do what is essentially easy stuff. 2- you would have to do it from scratch, this would be long and tedious to do for an existing site. 3- When a user goes to submit an order he may have to go to a form and see auto-completed information anyway, so all your effort may be for naught.

On the other hand, you could do very well by just checking for a session("userID") at the top of every page, and if this is missing, send the user back to the log in page. If the session("userID") is present, include a session identifier as part of the querystring in every single href attribute. (<a href="productDetailPage.asp?productID=43x1&session =546271">Lace-up blue sneakers</a>) This way the browser will interpret each link as never-before visited even if you never use the session ID part of the querystring in your page. And if a user is not logged in, even if he sees a product ID in a querystring, if he tries to visit it in the cache he will be sent back to the log in page.

I'm starting to ramble, but I think this is a better option for most applications. Does this make sense? Would this work for you?

Jared
Sep 10 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

21
by: Tony Marston | last post by:
If the use of the browser's BACK button is interfering with the operation of your web application then take a look at this article entitle "Back Button Blues" ...
5
by: Flemse | last post by:
In some instances (after using forms) trying to go back through browser's history causes a 'Cannot find Server' error. Hitting 'refresh' then loads the page correctly. Example: After using the...
5
by: spam_me_ not | last post by:
I already understand that one cannot disable a browser's forward and back functions. This is a situation where I have code working in Mozilla V1.6 and would like something similar for Opera and...
4
by: Rg | last post by:
Hello, I am very beginner with jscript. I have an Apache PHP enabled webserver and want to know from where users are coming from. Understand I want the last surfer's browser visited url. I...
1
by: ebramcity | last post by:
Hi all I search for a way in javascript to prevent browser from caching my HTML page in its "history" and "temporary files" if there is any ... Thanx a lot.
3
by: Rob | last post by:
Each time a webform is posted back (submitted), another URL is added to the browser's history list. My web application allows a back button to return to previously visited pages, but I do not wish...
0
by: hn | last post by:
Hi In my asp.net application I use Response.redirect to go from pages to pages. Everything is fine until a search function on a page is performed (it's a sql select and the result is bound to a...
39
by: clintonG | last post by:
This is not about starting a fight but an observation that seems to be proving itself on its own merit and is therefore simply a point of conjecture. I did not get serious about writing software...
2
by: | last post by:
I am working on an ASP.NET application that seems to be limiting browser histories to only one entry. I am not using SmartNavigation on any of the pages, and that is the only thing that I have...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.