473,769 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Prevent browser close

I am developing for a kiosk system. IE is loaded on this sytem and we want
to make sure that there is a browser open to our website location at all
times. So when the user closes the browser we want to either stop the close
and send the user back to the default page, or we want to detect to make
sure there isn't anyother browser open and if not open a new one to replace
the one that was closed.

So does anyone have any code samples that would help out on one or more
parts of this?

Thanks in advance!
Velvet

May 18 '07 #1
6 2062
Hello Velvet,

Write the service which enumerate all windows and check that browser with
your site in title is exist and active

But what u gonna do if user plug off network cable?

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

VI am developing for a kiosk system. IE is loaded on this sytem and
Vwe want to make sure that there is a browser open to our website
Vlocation at all times. So when the user closes the browser we want
Vto either stop the close and send the user back to the default page,
Vor we want to detect to make sure there isn't anyother browser open
Vand if not open a new one to replace the one that was closed.
V>
VSo does anyone have any code samples that would help out on one or
Vmore parts of this?
V>
VThanks in advance!
VVelvet
May 18 '07 #2
"Velvet" <MS***********@ nospam.nospamwr ote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
So does anyone have any code samples that would help out on one or more
parts of this?
See Michael's response...

How could you prevent someone from popping Task Manager and killing the
task...?

There really is no 100% reliable way of doing this...
--
http://www.markrae.net

May 18 '07 #3
The network cable will not be accessible so I don't see that as an issue.

About the service. I've not written a service application before. Do you
know of any tutorials which would point me in the right direction?

Also, isn't there something that I could do in the window.onclose event that
could prevent the browser from closing in the first place? I haven't found
anything in my searches, but I seem to remember that it was possible.

Thanks!
"Michael Nemtsev" <ne*****@msn.co mwrote in message
news:a2******** *************** ****@msnews.mic rosoft.com...
Hello Velvet,

Write the service which enumerate all windows and check that browser with
your site in title is exist and active

But what u gonna do if user plug off network cable?

---
WBR, Michael Nemtsev [.NET/C# MVP]. My blog:
http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

VI am developing for a kiosk system. IE is loaded on this sytem and
Vwe want to make sure that there is a browser open to our website
Vlocation at all times. So when the user closes the browser we want
Vto either stop the close and send the user back to the default page,
Vor we want to detect to make sure there isn't anyother browser open
Vand if not open a new one to replace the one that was closed.
VVSo does anyone have any code samples that would help out on one or
Vmore parts of this?
VVThanks in advance!
VVelvet


May 18 '07 #4
We are locking down all other operations through group policy's.

Keep the idea's coming pelase...
"Mark Rae" <ma**@markNOSPA Mrae.netwrote in message
news:%2******** ********@TK2MSF TNGP05.phx.gbl. ..
"Velvet" <MS***********@ nospam.nospamwr ote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
>So does anyone have any code samples that would help out on one or more
parts of this?

See Michael's response...

How could you prevent someone from popping Task Manager and killing the
task...?

There really is no 100% reliable way of doing this...
--
http://www.markrae.net

May 18 '07 #5
Hello Velvet,

Start from here http://pinvoke.net/default.aspx/user32/EnumWindows.html

I'd recommed to unload shell at all (explorer), and apply strick group policies,
so users have no access to any windows applications except your browser.
This is topic for windows newsgroups

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

VThe network cable will not be accessible so I don't see that as an
Vissue.
V>
VAbout the service. I've not written a service application before.
VDo you know of any tutorials which would point me in the right
Vdirection?
V>
VAlso, isn't there something that I could do in the window.onclose
Vevent that could prevent the browser from closing in the first place?
VI haven't found anything in my searches, but I seem to remember that
Vit was possible.
V>
VThanks!
V>
V"Michael Nemtsev" <ne*****@msn.co mwrote in message
Vnews:a2******* *************** *****@msnews.mi crosoft.com...
V>
>Hello Velvet,

Write the service which enumerate all windows and check that browser
with your site in title is exist and active

But what u gonna do if user plug off network cable?

---
WBR, Michael Nemtsev [.NET/C# MVP]. My blog:
http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/
"The greatest danger for most of us is not that our aim is too high
and we miss it, but that it is too low and we reach it" (c)
Michelangelo

VI am developing for a kiosk system. IE is loaded on this sytem
and
Vwe want to make sure that there is a browser open to our website
Vlocation at all times. So when the user closes the browser we
want
Vto either stop the close and send the user back to the default
page,
Vor we want to detect to make sure there isn't anyother browser
open
Vand if not open a new one to replace the one that was closed.
VVSo does anyone have any code samples that would help out on one
or
Vmore parts of this?
VVThanks in advance!
VVelvet

May 18 '07 #6
Problem Solved! It turns out that we can disable browesr close with in the
group policies in Windows itself! YAY! No extra last minute coding
required!

Thanks all!
Velvet
"Velvet" <MS***********@ nospam.nospamwr ote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
>I am developing for a kiosk system. IE is loaded on this sytem and we want
to make sure that there is a browser open to our website location at all
times. So when the user closes the browser we want to either stop the
close and send the user back to the default page, or we want to detect to
make sure there isn't anyother browser open and if not open a new one to
replace the one that was closed.

So does anyone have any code samples that would help out on one or more
parts of this?

Thanks in advance!
Velvet

May 18 '07 #7

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

Similar topics

2
1775
by: Jerry | last post by:
Hi All ! Could somebody help me out on this one: My script needs to execute a time consuming process which might take as long as an hour or so to finish. Usually, the time limit would produce a time out after 30 seconds or so. Modifying the set_time_limit() does not resolve the problem since the browser then shows a could not display page error after 2 minutes or so.
11
2552
by: danny | last post by:
Is there a way I can prevent the browser window from being closed? I'd like to make sure the browser window only closes programatically (I want to make sure the user enters data before moving on). Another possible solution would be to re-open the window when it's closed. Any help is appreciated, thanks.
9
2284
by: Daniel Walzenbach | last post by:
Hi I am faced with the following problem: I have a page (let’s call this page page1.aspx) containing some TextBoxes and a hyperlink which opens another page (let’s call this page page2.aspx) as a popup using either window.open or window.showModalDialog. Since I want to warn the users of my application when they try to close page1.aspx and have changed the values in the meantime I thought about using the “onbeforeunload” event of the...
6
3075
by: Divya | last post by:
Hi, I have a web page which generates a CSV file based on some user input. When this file is downloaded by the user, the file is being automatically converted to .xls. Any idea how I can prevent this? My code (snippet) - StreamWriter sw; if(File.Exists(filename))
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10049
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9865
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8873
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
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 presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.