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

Home Posts Topics Members FAQ

Web App: Limiting # of logged in users

Greetings,

I am creating a web application, which I will be selling licenses to
be able to use it. So Customer Group A, could purchase 3 licenses,
Customer Group B could purchase 30.

With the web app I am using asp.net/vb.net

This means Customer Group A, could only have 3 concurrent users logged
in, and for Customer Group B only 30 at one time.

I am using a username, password, groupID criteria to log in to the
system.

My question is - how do I go about being able to say "ERROR: Customer
Group A already has 3 logged in users - please wait to be able to use
the system".

Obviously, I can't use a literal to store the value at during logon -
because if the person does not click a "log out" button and just
closes the browser, it will not increase the number of available seats
for that group.

I have had ideas with using the global.asax file, with possibly using
the Application_Sta rt/End and/or Session_Start/End in some sort of
combination - but curious to see if anyone out there has any bright
ideas.

Your assistance in anyway would be much appreciated.

-Thanks
Jul 21 '05 #1
4 2035
This is not a bright idea by any stretch of the imagination...y ou could store the information for the 3 concurrent users in a db table. For example, the users are Jimmie, Sam, and Sally. Let's say Sally logs off. You could have some sort of reaper process running which would check for live sessions. If it's not live, remove Sally's info from the db table. You now have an open spot. The good thing about storing the user info in a db table is you can create an admin app which would view exactly who is online, their info, etc

----- Adam wrote: ----

Greetings

I am creating a web application, which I will be selling licenses t
be able to use it. So Customer Group A, could purchase 3 licenses
Customer Group B could purchase 30

With the web app I am using asp.net/vb.ne

This means Customer Group A, could only have 3 concurrent users logge
in, and for Customer Group B only 30 at one time

I am using a username, password, groupID criteria to log in to th
system

My question is - how do I go about being able to say "ERROR: Custome
Group A already has 3 logged in users - please wait to be able to us
the system"

Obviously, I can't use a literal to store the value at during logon
because if the person does not click a "log out" button and jus
closes the browser, it will not increase the number of available seat
for that group

I have had ideas with using the global.asax file, with possibly usin
the Application_Sta rt/End and/or Session_Start/End in some sort o
combination - but curious to see if anyone out there has any brigh
ideas

Your assistance in anyway would be much appreciated

-Thank

Jul 21 '05 #2
From my own hunting around - it seems pretty much nothing short of
JavaScript detecting a browser closing or someone typing a new url in
the address bar, and then redirecting the browser to a .aspx page that
abandons the session will get this to work (which also introduces
browser compatability issues - but I could enforce a certain type of
browser for this product).

I know the session_end will execute upon the session expiring, but I
can't wait 20 minutes for the user slot to clear, nor can I have a 1
minute time out to use the software obviously.

IF there is anything - I mean anything, i.e. creating a server side
dll, some crazy amount of programming - anything - above and beyond
javascript that will let me accomplish this feat - please let me know.
I mean could I have a master window open that has some sort of applet
running talking to the server while the rest of the web app is run?

I am reaching here - but just looking for new ideas and possibilities.

Thanks...
ad*********@yah oo.com (Adam) wrote in message news:<51******* *************** ***@posting.goo gle.com>...
Greetings,

I am creating a web application, which I will be selling licenses to
be able to use it. So Customer Group A, could purchase 3 licenses,
Customer Group B could purchase 30.

With the web app I am using asp.net/vb.net

This means Customer Group A, could only have 3 concurrent users logged
in, and for Customer Group B only 30 at one time.

I am using a username, password, groupID criteria to log in to the
system.

My question is - how do I go about being able to say "ERROR: Customer
Group A already has 3 logged in users - please wait to be able to use
the system".

Obviously, I can't use a literal to store the value at during logon -
because if the person does not click a "log out" button and just
closes the browser, it will not increase the number of available seats
for that group.

I have had ideas with using the global.asax file, with possibly using
the Application_Sta rt/End and/or Session_Start/End in some sort of
combination - but curious to see if anyone out there has any bright
ideas.

Your assistance in anyway would be much appreciated.

-Thanks

Jul 21 '05 #3
Greetings,

From my own hunting around I came to the same conclusion. I am
currently going to store the logged in information in the table - but
please go into more detail of this 'reaper process'.

My big obstacle now is getting the not active users to be removed from
the logged in table in a short amount of time. I can't wait 20
minutes for the seat to open up (i.e. waiting for a session_end event
to fire), nor can I have a 1 minute time out for a web based
application)

So with this 'reaper process' - how about do I go about creating and
checking for active users? Is it a situation where I have some
javascript on my pages causing a reload ever 60 seconds, and having my
time out set two 2 minutes - which doesn't sound very flattering
either.

Please if you can describe this reaper process - as I would love to
hear about it.

Thanks.

"WiseOne" <an*******@disc ussions.microso ft.com> wrote in message news:<D4******* *************** ************@mi crosoft.com>...
This is not a bright idea by any stretch of the imagination...y ou

could store the information for the 3 concurrent users in a db table.
For example, the users are Jimmie, Sam, and Sally. Let's say Sally
logs off. You could have some sort of reaper process running which
would check for live sessions. If it's not live, remove Sally's info
from the db table. You now have an open spot. The good thing about
storing the user info in a db table is you can create an admin app
which would view exactly who is online, their info, etc.
Jul 21 '05 #4
Adam wrote:
Greetings,

I am creating a web application, which I will be selling licenses to
be able to use it. So Customer Group A, could purchase 3 licenses,
Customer Group B could purchase 30.

With the web app I am using asp.net/vb.net

This means Customer Group A, could only have 3 concurrent users logged
in, and for Customer Group B only 30 at one time.

I am using a username, password, groupID criteria to log in to the
system.

My question is - how do I go about being able to say "ERROR: Customer
Group A already has 3 logged in users - please wait to be able to use
the system".

Obviously, I can't use a literal to store the value at during logon -
because if the person does not click a "log out" button and just
closes the browser, it will not increase the number of available seats
for that group.

I have had ideas with using the global.asax file, with possibly using
the Application_Sta rt/End and/or Session_Start/End in some sort of
combination - but curious to see if anyone out there has any bright
ideas.

Your assistance in anyway would be much appreciated.

-Thanks

Possibly that what you need is use a shared or static structure to hold a
count of groups and users. Then when you try to create the Page instance,
you should check. I am thinkin that you should provide the http way of
rejecting a login (403).
I hope this helps
Jul 21 '05 #5

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

Similar topics

1
2319
by: Rick | last post by:
Hello, I have an application created w/ VB6 and I an having trouble installing it on a Windows 2000 SP3 machine that is on a domain. I can install and run the application fine when logged into the machine with administrator priveledges however the machine needs to be logged in to an account with user rights only. If I install under admin and then try to run the app under another user I get an error message indicating the program...
6
1853
by: Gerry Abbott | last post by:
Hi all, Have written some code to limit the concurrent users of a database. Use the Autoexec macro to open a form. When the form opens it increments a value in a table. When the form closes (i.e. when the database closes, then the number in the table is decremented. I plan to use this on a front/back end setup, with a number of front end users on the network. What i'm concerned about is if for some reason the network fails, and the...
0
2696
by: Janning Vygen | last post by:
Hi, i have a question about how to handle postgresql constraint errors in the client app. I found some mails in the archive about it, too. But i have still so many questions about how to do it, where to check it and how to display a good error message. I would love to hear some comments about my ideas:
4
372
by: Adam | last post by:
Greetings, I am creating a web application, which I will be selling licenses to be able to use it. So Customer Group A, could purchase 3 licenses, Customer Group B could purchase 30. With the web app I am using asp.net/vb.net This means Customer Group A, could only have 3 concurrent users logged in, and for Customer Group B only 30 at one time.
4
1246
by: BARTKO Zoltan | last post by:
Hello folks, First a question and then the rest: Does the PostgreSQL log contain the stored function calls with all parameters? Or is this something that could be set? I would appreciate anyone wiser than me to comment on the following: I am making an app for PostgreSQL (the server). The clients are connecting through the same single user. There is a model of the user organization inside (position hierarchy), each person (virtual...
2
1750
by: orp | last post by:
We are developing an ASP.NET 2.0 (C#) application, and I'm having troubles getting the ASP.NET app. to write to the event log when accessing the web site from a separate client computer. Here's some details: Server and client computers both in the same workgroup Logged into server as local Administrator Logged into client as a local user that is only in the Users group on the client computer
8
1781
by: GaryDean | last post by:
I have a client with a need for multiple app authentication. The apps are all asp.net apps but may be on different servers. The user just wants a single logon and them be free to use five or six different asp.net applications. Is this feasible? -- Regards, Gary Blakely
0
1635
by: =?Utf-8?B?VHJhY2tz?= | last post by:
I created a setup program in VS2005 ide. It installs my app on 98-Vista. I have tried this with the Click once check box checked(full trust) and not checked does not seem to matter. Anyway, the setup works fine. But in Vista, the program icon on the desktop and the start menu run the app fine if logged in as the primary admin, but if logged in as anyone else, even with admin privlages, the icons/startup menu item seems to try to run the...
2
1471
by: Steve | last post by:
I've developed a database that will be used by my team (25 people) The database is based on the Resource Planner template The database will reside on a shared drive. What I'd to do now is create some sort of entry point into the database that only shows the users records they own. So I was thinking when the database opens the user selects their name. Then the switchboard opens but no matter what they select from the switchboard only...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10215
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
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
8872
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 project—planning, coding, testing, and deployment—without 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...
0
6674
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5307
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...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3964
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

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.