I have 20 - 25 users using my web application, and I store their UserID,
along with their SessionID in Aplications Variable. Now, My question is,
suppose if my users increase to 100, 1000, or even 10,000 then still this
system will work w/o having any memory problem ? Ofcourse when user has Log
Off, then I remove it from these arrays, but still it is possible that at a
time 1000 users may be login at a time.
Tia 6 1225
i dont see any problems to your approach though i am just wondering.... what
happens if the user just closes the browser without going into the effort of
clicking the Logout button ?
Memory issues if any will be determined by what exact information you are
storing per user in the application object. if you are storing large amounts
of user specific data then you need to use a different approach
--
Regards,
Hermit Dave
( http://hdave.blogspot.com)
"Lord2702" <Lo******@MSN.com> wrote in message
news:uE*************@tk2msftngp13.phx.gbl... I have 20 - 25 users using my web application, and I store their UserID, along with their SessionID in Aplications Variable. Now, My question is, suppose if my users increase to 100, 1000, or even 10,000 then still this system will work w/o having any memory problem ? Ofcourse when user has
Log Off, then I remove it from these arrays, but still it is possible that at
a time 1000 users may be login at a time.
Tia
Lord2702 wrote: I have 20 - 25 users using my web application, and I store their UserID, along with their SessionID in Aplications Variable. Now, My question is, suppose if my users increase to 100, 1000, or even 10,000 then still this system will work w/o having any memory problem ? Ofcourse when user has Log Off, then I remove it from these arrays, but still it is possible that at a time 1000 users may be login at a time.
Tia
Are you using Lock/Unlock when you change those stored values?
This might slow your application down when there are a lot of users.
Hans Kesting
Hermit Dave has a good point. It really depends on what you are
storing per user, how much RAM is on the machine, and lots of other
factors. The only way to know exactly what will happen is to give the
application a stress test.
What version of Visual Studio are you using? You might have ACT
installed. http://msdn.microsoft.com/library/de...nethowto10.asp
--
Scott http://www.OdeToCode.com/
On Thu, 7 Oct 2004 06:02:54 +0100, "Hermit Dave"
<he************@CAPS.AND.DOTS.hotmail.com> wrote: i dont see any problems to your approach though i am just wondering.... what happens if the user just closes the browser without going into the effort of clicking the Logout button ? Memory issues if any will be determined by what exact information you are storing per user in the application object. if you are storing large amounts of user specific data then you need to use a different approach
My storage could be maximum 16 - 20 bytes per user, and I can shorten it
upto 8 bytes. But as Hermit mention if user close the browser w/o clicking
on Logout then How should I handle this situation ? And, what could be the
best approach to store the Login user information in ASP.Net application ? I
appreciate your reply.
"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:8t********************************@4ax.com... Hermit Dave has a good point. It really depends on what you are storing per user, how much RAM is on the machine, and lots of other factors. The only way to know exactly what will happen is to give the application a stress test.
What version of Visual Studio are you using? You might have ACT installed. http://msdn.microsoft.com/library/de...nethowto10.asp -- Scott http://www.OdeToCode.com/
On Thu, 7 Oct 2004 06:02:54 +0100, "Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote:
i dont see any problems to your approach though i am just wondering....
whathappens if the user just closes the browser without going into the effort
ofclicking the Logout button ? Memory issues if any will be determined by what exact information you are storing per user in the application object. if you are storing large
amountsof user specific data then you need to use a different approach
16-20 bytes is a relatively small amount, so I would not see any
problems there. When the user closes the browser without signing out,
you'll just have to wait for the runtime to clean up unused sessions,
there is no method for your code to call and speed up that process.
--
Scott http://www.OdeToCode.com/
On Thu, 7 Oct 2004 12:12:32 -0700, "Lord2702" <Lo******@MSN.com>
wrote: My storage could be maximum 16 - 20 bytes per user, and I can shorten it upto 8 bytes. But as Hermit mention if user close the browser w/o clicking on Logout then How should I handle this situation ? And, what could be the best approach to store the Login user information in ASP.Net application ? I appreciate your reply.
"Scott Allen" <bitmask@[nospam].fred.net> wrote in message news:8t********************************@4ax.com.. . Hermit Dave has a good point. It really depends on what you are storing per user, how much RAM is on the machine, and lots of other factors. The only way to know exactly what will happen is to give the application a stress test.
What version of Visual Studio are you using? You might have ACT installed. http://msdn.microsoft.com/library/de...nethowto10.asp -- Scott http://www.OdeToCode.com/
On Thu, 7 Oct 2004 06:02:54 +0100, "Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote:
>i dont see any problems to your approach though i am just wondering....what >happens if the user just closes the browser without going into the effortof >clicking the Logout button ? >Memory issues if any will be determined by what exact information you are >storing per user in the application object. if you are storing largeamounts >of user specific data then you need to use a different approach
well is it essential that you store that info in Application object ?
I have had scenarios where i had to store session id and the current sorting
criteria but it was very specific requirement for a very specific user group
on a server that i had control over :). Infact given the option i would have
preferred to think of a different approach if i had sufficient time.
what i would suggest is using a database table and storing the info there.
plus you can store like log in time and last access time etc. schedule a sql
job to run every now and again say half an hour or an hour and clean up if
no activity has been registered from user
--
Regards,
Hermit Dave
( http://hdave.blogspot.com)
"Lord2702" <Lo******@MSN.com> wrote in message
news:OU**************@TK2MSFTNGP10.phx.gbl... My storage could be maximum 16 - 20 bytes per user, and I can shorten it upto 8 bytes. But as Hermit mention if user close the browser w/o clicking on Logout then How should I handle this situation ? And, what could be the best approach to store the Login user information in ASP.Net application ?
I appreciate your reply.
"Scott Allen" <bitmask@[nospam].fred.net> wrote in message news:8t********************************@4ax.com... Hermit Dave has a good point. It really depends on what you are storing per user, how much RAM is on the machine, and lots of other factors. The only way to know exactly what will happen is to give the application a stress test.
What version of Visual Studio are you using? You might have ACT installed. http://msdn.microsoft.com/library/de...nethowto10.asp -- Scott http://www.OdeToCode.com/
On Thu, 7 Oct 2004 06:02:54 +0100, "Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote:
i dont see any problems to your approach though i am just wondering.... whathappens if the user just closes the browser without going into the
effort ofclicking the Logout button ? Memory issues if any will be determined by what exact information you
arestoring per user in the application object. if you are storing large
amountsof user specific data then you need to use a different approach
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: aa |
last post by:
I am migrating to PHP from ASP where there are the Application Scope variables which are accessible from any page on a website and which are used, in particular, for hit counters.
Is there a similar...
|
by: Mark Fisher |
last post by:
I have a Java desktop GUI application that the user can run multiple
times. In order to keep one instance of the application distinct from
another, I'd like to put the instance number of the...
|
by: Duncan Welch |
last post by:
Good morning,
I have a classic ASP app that I'm converting to .NET. In the existing app
when accessing infrequntly changed data, it reads a database once a day, and
saves the results in an...
|
by: Patrick |
last post by:
Hi
I have the following problem. When starting my asp.net application, i read a
encrypted string from a file, decrypt it and want this values to be
available in the complete application. they...
|
by: Keith Chadwick |
last post by:
I am having some trouble referencing an Application("myVar") variable from within a module.vb file on my ASP.NET site.
According to the documentation I should be able to reference...
|
by: William LaMartin |
last post by:
I have a problem, mentioned here before, of Session and Application
variables disappearing at one site but not at others or on my development
computer.
The problem is illustrated by an example...
|
by: Greg Collins [MVP] |
last post by:
Hi, I couldn't find what I was looking for by searching the newsgroup, but perhaps these have already been discussed somewhere. This is a bit long with a lot of interrelated questions.
What I've...
|
by: J-T |
last post by:
We are working on an asp.net application which is a 3-tier application.I was
aksed to create a component which monitors a folder and gets the file and
pass them to a class library in our business...
|
by: Frank_00001 |
last post by:
I've migrated an application from VS 2003 to VS 2005. It worked fine in
2003; but I've been having issue in 2005. The latest is dealing with a
DataSet that I have as an Application Variable. It...
|
by: Victor |
last post by:
I've got two domain names sharing the same IP address that use ASP VBScript
If I set a session variable with domain 1, it is only available for domain 1 - this is
correct?
If I set an...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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,...
|
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
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...
| |