Home All Groups Group Topic Archive Search About

restrict number of users

Author
7 Jul 2009 9:54 PM
Gerhard
Is there a best practice way to restrict a web page to only one user at a
time?  This is for a business page that is not used often and would be best
if only one person at a time was allowed to access it.  Using vb.net version
3.5.  Can be accessed from both Intranet and Internet.

Thanks

Author
7 Jul 2009 10:19 PM
Mark Rae [MVP]
"Gerhard" <Gerhard@community.nospam> wrote in message
news:C1B3E9A6-1EC6-4E57-921F-795CFED6A43E@microsoft.com...

> Is there a best practice way to restrict a web page to only one user at a
> time?

No - the web simply isn't designed to work this way...

E.g. you could set an Application variable when the page loads, but how are
you going to know when the user has left that page? They might simply pull
the electricity plug out of the back of their computer and you'd be left
with a page which no-one could access...

My advice to you would be that if you're even contemplating something like
this there is something seriously wrong with the design of your web
application...


--
Mark Rae
ASP.NET MVP
http://www.markrae.net
Are all your drivers up to date? click for free checkup

Author
8 Jul 2009 3:21 PM
Recruitment !!!
Hi,

I am sendu an recruiter from E*pro.

Nice to have a glance every day in this community and its people. Happy to
observe its concept and postings. I am working with a recruiting firm and
recruiting people in various IT,Accounting,ITES and other domains. I need
updated resume from people in Various parts of US. I can help them in getting
a better oppurtinity in any field of their aspiration.

Mail ur updated CV to: nse***@eprocorp.com 

Warm Regards,
N.Sendu.
E*pro.
Author
8 Jul 2009 2:05 AM
Allen Chen [MSFT]
Hi Gerhard,

>Is there a best practice way to restrict a web page to only one user at a
>time?  This is for a business page that is not used often and would be
best
>if only one person at a time was allowed to access it.  Using vb.net
version
>3.5.  Can be accessed from both Intranet and Internet.

I agree with Mark. What I want to supplement is, if you have to do so an
option is to use membership and use this method to get the approximate
number of online users.

Membership.GetNumberOfUsersOnline()

You can check it at the begining and redirect user to another page telling
him to wait, if the value is 1. This is the simplest option. If a user is
inactive for 15 mins (by default), he is not recognized as online user.
Therefore another user can access the page.

Please let me know if this can solve this issue.

Regards,
Allen Chen
Microsoft Online Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msd***@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Author
8 Jul 2009 2:12 PM
Gerhard
Thanks to all of you.  This was very helpful.



Show quoteHide quote
"Allen Chen [MSFT]" wrote:

> Hi Gerhard,
>
> >Is there a best practice way to restrict a web page to only one user at a
> >time?  This is for a business page that is not used often and would be
> best
> >if only one person at a time was allowed to access it.  Using vb.net
> version
> >3.5.  Can be accessed from both Intranet and Internet.
>
> I agree with Mark. What I want to supplement is, if you have to do so an
> option is to use membership and use this method to get the approximate
> number of online users.
>
> Membership.GetNumberOfUsersOnline()
>
> You can check it at the begining and redirect user to another page telling
> him to wait, if the value is 1. This is the simplest option. If a user is
> inactive for 15 mins (by default), he is not recognized as online user.
> Therefore another user can access the page.
>
> Please let me know if this can solve this issue.
>
> Regards,
> Allen Chen
> Microsoft Online Support
>
> Delighting our customers is our #1 priority. We welcome your comments and
> suggestions about how we can improve the support we provide to you. Please
> feel free to let my manager know what you think of the level of service
> provided. You can send feedback directly to my manager at:
> msd***@microsoft.com.
>
> ==================================================
> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.
>
> Note: MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 2 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions. Issues of this
> nature are best handled working with a dedicated Microsoft Support Engineer
> by contacting Microsoft Customer Support Services (CSS) at
> http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
>
>
Author
8 Jul 2009 3:24 PM
Recruitment !!!
Hi,

I am sendu an recruiter from E*pro.

Nice to have a glance every day in this community and its people. Happy to
observe its concept and postings. I am working with a recruiting firm and
recruiting people in various IT,Accounting,ITES and other domains. I need
updated resume from people in Various parts of US. I can help them in getting
a better oppurtinity in any field of their aspiration.

Mail ur updated CV to: nse***@eprocorp.com 

Warm Regards,
N.Sendu.
E*pro.
Author
8 Jul 2009 3:23 PM
Recruitment !!!
Hi,

I am sendu an recruiter from E*pro.

Nice to have a glance every day in this community and its people. Happy to
observe its concept and postings. I am working with a recruiting firm and
recruiting people in various IT,Accounting,ITES and other domains. I need
updated resume from people in Various parts of US. I can help them in getting
a better oppurtinity in any field of their aspiration.

Mail ur updated CV to: nse***@eprocorp.com 

Warm Regards,
N.Sendu.
E*pro.
Author
8 Jul 2009 10:54 AM
Patrice
As this is unusual you may want to start fist by explaining what is the
problem when multiple users are hiting this page. This way, someone will be
perhaps able to suggest how to solve the original issue rather than
implementing a workaround on top of the original issue...

If this is for data updates for example, optimistic concurrency could
perhaps help...

--
Patrice

"Gerhard" <Gerhard@community.nospam> a écrit dans le message de groupe de
discussion : C1B3E9A6-1EC6-4E57-921F-795CFED6A***@microsoft.com...
Show quoteHide quote
> Is there a best practice way to restrict a web page to only one user at a
> time?  This is for a business page that is not used often and would be
> best
> if only one person at a time was allowed to access it.  Using vb.net
> version
> 3.5.  Can be accessed from both Intranet and Internet.
>
> Thanks
Author
8 Jul 2009 3:25 PM
Recruitment !!!
Hi,

I am sendu an recruiter from E*pro.

Nice to have a glance every day in this community and its people. Happy to
observe its concept and postings. I am working with a recruiting firm and
recruiting people in various IT,Accounting,ITES and other domains. I need
updated resume from people in Various parts of US. I can help them in getting
a better oppurtinity in any field of their aspiration.

Mail ur updated CV to: nse***@eprocorp.com 

Warm Regards,
N.Sendu.
E*pro.
Author
8 Jul 2009 12:32 PM
Gregory A. Beamer
=?Utf-8?B?R2VyaGFyZA==?= <Gerhard@community.nospam> wrote in
news:C1B3E9A6-1EC6-4E57-921F-795CFED6A43E@microsoft.com:

> Is there a best practice way to restrict a web page to only one user
> at a time?  This is for a business page that is not used often and
> would be best if only one person at a time was allowed to access it.
> Using vb.net version 3.5.  Can be accessed from both Intranet and
> Internet.

You cannot lock a single page, or at least not easily. You can put the page
in a database, perhaps, and put a lock on the data and then determine
whether or not to show it to another person. There is a problem with that
approach, however. How do you know when a person is no longer viewing a
page. Here are specifics:

1. User clicks another link - You now can free up the resource
2. User closes browser - You have no indicator he left
3. User types in new URL - You have no indicator he left

With #2 and #3, you can wait for session time out, but that locks the
resource for 20 minutes.

Best practice states you should optimistically lock records, meaning you
determine if they are changed when the user submits a change. If this does
not work, and you truly need to restrict to one person, you are best to set
up a windows app (Silverlight is an option for the web) and restrict there.


--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

******************************************
Show quoteHide quote
|     Think outside the box!             |
******************************************
Author
8 Jul 2009 3:26 PM
Recruitment !!!
Hi,

I am sendu an recruiter from E*pro.

Nice to have a glance every day in this community and its people. Happy to
observe its concept and postings. I am working with a recruiting firm and
recruiting people in various IT,Accounting,ITES and other domains. I need
updated resume from people in Various parts of US. I can help them in getting
a better oppurtinity in any field of their aspiration.

Mail ur updated CV to: nse***@eprocorp.com 

Warm Regards,
N.Sendu.
E*pro.
Author
8 Jul 2009 4:42 PM
Gregory A. Beamer
=?Utf-8?B?UmVjcnVpdG1lbnQgISEh?= <Recruitm***@discussions.microsoft.com>
wrote in news:4672DE6D-2436-4375-9C0C-D6BA746CEDEB@microsoft.com:

> Hi,
>
> I am sendu an recruiter from E*pro.
>
> Nice to have a glance every day in this community and its people.
> Happy to observe its concept and postings. I am working with a
> recruiting firm and recruiting people in various IT,Accounting,ITES
> and other domains. I need updated resume from people in Various parts
> of US. I can help them in getting a better oppurtinity in any field of
> their aspiration.
>

Are you desperate or just an idiot?


--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
Show quoteHide quote
|      Think outside the box!             |
*******************************************
Author
8 Jul 2009 3:21 PM
Recruitment !!!
Hi,

I am sendu an recruiter from E*pro.

Nice to have a glance every day in this community and its people. Happy to
observe its concept and postings. I am working with a recruiting firm and
recruiting people in various IT,Accounting,ITES and other domains. I need
updated resume from people in Various parts of US. I can help them in getting
a better oppurtinity in any field of their aspiration.

Mail ur updated CV to: nse***@eprocorp.com 

Warm Regards,
N.Sendu.
E*pro.
Author
8 Jul 2009 3:30 PM
Recruitment !!!
Hi,

I am sendu an recruiter from E*pro.

Nice to have a glance every day in this community and its people. Happy to
observe its concept and postings. I am working with a recruiting firm and
recruiting people in various IT,Accounting,ITES and other domains. I need
updated resume from people in Various parts of US. I can help them in getting
a better oppurtinity in any field of their aspiration.

Mail ur updated CV to: nse***@eprocorp.com 

Warm Regards,
N.Sendu.
E*pro.

Bookmark and Share