restrict number of users

  • Thread starter Thread starter Gerhard
  • Start date Start date
G

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
 
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:
(e-mail address removed).

==================================================
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.
 
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...
 
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! |
******************************************
 
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: (e-mail address removed)

Warm Regards,
N.Sendu.
E*pro.
 
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: (e-mail address removed)

Warm Regards,
N.Sendu.
E*pro.
 
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: (e-mail address removed)

Warm Regards,
N.Sendu.
E*pro.
 
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: (e-mail address removed)

Warm Regards,
N.Sendu.
E*pro.
 
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: (e-mail address removed)

Warm Regards,
N.Sendu.
E*pro.
 
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: (e-mail address removed)

Warm Regards,
N.Sendu.
E*pro.
 
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: (e-mail address removed)

Warm Regards,
N.Sendu.
E*pro.
 
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

*******************************************
| Think outside the box! |
*******************************************
 
Back
Top