Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > restrict number of users

Reply
Thread Tools

restrict number of users

 
 
Gerhard
Guest
Posts: n/a
 
      07-07-2009

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
 
Reply With Quote
 
 
 
 
Allen Chen [MSFT]
Guest
Posts: n/a
 
      07-08-2009

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:
.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#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/subs.../aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.



 
Reply With Quote
 
 
 
 
Patrice
Guest
Posts: n/a
 
      07-08-2009

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" <> a écrit dans le message de groupe de
discussion : C1B3E9A6-1EC6-4E57-921F-...
> 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



 
Reply With Quote
 
Gregory A. Beamer
Guest
Posts: n/a
 
      07-08-2009

=?Utf-8?B?R2VyaGFyZA==?= <> wrote in
news:C1B3E9A6-1EC6-4E57-921F-:

> 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

******************************************
| Think outside the box! |
******************************************
 
Reply With Quote
 
Recruitment !!!
Guest
Posts: n/a
 
      07-08-2009

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:

Warm Regards,
N.Sendu.
E*pro.
 
Reply With Quote
 
Recruitment !!!
Guest
Posts: n/a
 
      07-08-2009

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:

Warm Regards,
N.Sendu.
E*pro.
 
Reply With Quote
 
Recruitment !!!
Guest
Posts: n/a
 
      07-08-2009

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:

Warm Regards,
N.Sendu.
E*pro.
 
Reply With Quote
 
Recruitment !!!
Guest
Posts: n/a
 
      07-08-2009

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:

Warm Regards,
N.Sendu.
E*pro.
 
Reply With Quote
 
Recruitment !!!
Guest
Posts: n/a
 
      07-08-2009

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:

Warm Regards,
N.Sendu.
E*pro.
 
Reply With Quote
 
Recruitment !!!
Guest
Posts: n/a
 
      07-08-2009

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:

Warm Regards,
N.Sendu.
E*pro.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XSD: restrict number of elements with certain attribute value Joshua Mostafa XML 4 05-11-2007 01:30 AM
How to restrict lenght of entry widget to certain number of character Michael Onfrek Python 7 06-02-2005 02:02 PM
Restrict number of concurrent login - Help me olease =?Utf-8?B?Q2FsdmluIEtE?= ASP .Net 2 05-22-2005 11:57 PM
Restrict users using Application_AcquireRequestState? =?Utf-8?B?RGF2ZQ==?= ASP .Net 1 03-02-2005 07:20 PM
Re: Restrict Bandwidth to users Jack Wireless Networking 0 09-10-2004 11:35 PM



Advertisments