Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 17th, 2005, 01:48 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default Application Multiple Instance

Hi Experts,

Can anyone tell me how to stop a user from running a web application from the same machine? If it is already running, I would like to show another page.

Regards
<a href="http://ganeshprof.blogspot.com/" target="_blank">Ganesh</a>
__________________
Regards
Ganesh
http://ganeshprof.blogspot.com
Find your solution here...
 
Old May 17th, 2005, 06:13 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I think you'll find this pretty tricky. Because of the stateless nature of HTML based applications, you're going to run into a problem:

Let's say you have some mechanism to check for a second browser instance. Perhaps you use a cookie. Now you open a second browser and you get the page that tells you "you can't run this twice". So you close the browser and click on a link back in the first browser. Now you get the same "you can't run this twice" page. Why is this? It's because the server can not distinguish between different requests. It can not know that request number two is coming from one browser or another. Such is the environment of stateless applications. You'll need to write some kind of applet that will run at the browser that employs more complicated techniques.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple forms in one application lily611 General .NET 12 December 27th, 2006 08:21 AM
One instance of C# compo. serving multiple clients Nalin General .NET 1 January 14th, 2005 03:53 AM
Check Multiple running Instance of DTS Package greenash SQL Server DTS 0 January 3rd, 2005 09:33 AM
Single or Multiple application. Gibs_poovath General .NET 7 May 25th, 2004 07:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.