473,396 Members | 2,018 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,396 software developers and data experts.

WebBrowser - how to clear session cache?

How can I clear the current session cache of previously visited webpages?

That is, say I start up my app (with browser component), point to
www.cnn.com, click on several links, then I want to programmatically clear
the current session cache so if the user hits the back button, their current
page is now, in reality, the start node and there is nothing to traverse to.
Mar 30 '06 #1
2 7553
If you want to disable back events for your own application, that's not
possible however you can choose to not cache the pages using the pragma no
cache directive. hope this helps.

--
Warm Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley 2006
Blog: http://msmvps.com/blogs/Alvin/
-------------------------------------------------------

"ESmith" <el**********@hotmail.com> wrote in message
news:eS*************@TK2MSFTNGP09.phx.gbl...
How can I clear the current session cache of previously visited webpages?

That is, say I start up my app (with browser component), point to
www.cnn.com, click on several links, then I want to programmatically clear
the current session cache so if the user hits the back button, their current page is now, in reality, the start node and there is nothing to traverse to.

Mar 30 '06 #2
If Ive understood correctly and you want to stop people going 'back', somewhere on your page you could use the javascript:

history.forward();

no more going back as you are already there.

This does of course need something on your page to put the JS there - you could have a common user control or alternatively in the Render event of a page that wraps what you are viewing you can intercept the construction of the html with a HtmlTextWriter...very useful when you need to retrospectively add common page attributes such as the ie title bar months into development.
Apr 21 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Vetrivel | last post by:
Application architecture : Develop interface between two existing systems, a. Enterprise CRM system b. Web based intranet system. Environment : Intranet Server : IIS and ASP. Script :...
1
by: zorhel | last post by:
Greetings, I need to create a lot of instances of WebBrowsers (let's try 100) and store that in a WebBrowser array according my following code, using Visual Studio 2005 Beta. private class Test...
3
by: DC Gringo | last post by:
I have an app that I can't seem to clear out server resources with a button onclick event: The session variables seem to be disappearing properly, but the aspnet_wp.exe process stays where it...
0
by: dummy_2600 | last post by:
I have an app I'm a trying to roll out to production in which Session.Clear() doesn't seem to be working for me. Basically we have multiple forms that make up a registration process. At the end...
5
by: tshad | last post by:
When I log of I do: HttpContext.Current.Session.Clear() FormsAuthentication.SignOut() The problem is that it clears the variables that I set up in my Session_Start function in my...
17
by: Riaan | last post by:
Hi guys! I have an issue that needs urgent resolution. Imagine this scenario: You have: 1 production server running Windows Server 2003, IIS6 and an instance of MSDE 2000. There is an...
1
by: Denys | last post by:
I use a WebBrowser in a windows form (without connection). I feed the "DocumentText" property and the result is ok. But when I try to change the content of my WebBrowser, the original content...
4
by: rgparkins | last post by:
Hello I am running out of time with a problem I have running PHP 5.04 and Apache 2.0 and really need help :(. I have a page that stores a variable in session but each time I reload that page the...
0
by: Aarchaic | last post by:
Hello i have problem my session variables seem to disapear as i go along i've created this code to ilustrate whats happening First off i just post 3 detials like a name a age and a favourite...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.