View Full Version : Session - System Resources
11-19-2003, 10:22 AM
When we talk about session load the system resources, beside the mamory used, what are the others resources it means????
just wanna to know in details.....
11-19-2003, 08:35 PM
well I don't know if speed would count, but bandwidth is a resource that sessions eat. if you have 30 concurrent users and you have 10 items in a session variable for each user, your visitors see a very big change in the speed in which pages load in direct result of the number of users logged into your site.
what I do is after someone logs in I only keep their username in the session variable (only). then if they request more information search the database for the record with that username (unique usernames of course).
11-19-2003, 08:50 PM
The amount of the preformance hit you take is driectly related to your available bandwitdth and server "mamory". The better they are, the better your preformance will always be.
I use sessions on some of my sites, that has had up to 230 active users with no noticable drop in preformance.
11-20-2003, 02:22 AM
Originally posted by ecnarongi
what I do is after someone logs in I only keep their username in the session variable (only). then if they request more information search the database for the record with that username (unique usernames of course). NO!! Don't do that! Use the application and session collections to cache variables sensibly and you'll get HUGE speedups! Otherwise you're hitting the DB for exactly the same information every time, and incurring unneccessary DB hits, which increase Web server<>DB server bandwidth usage, and reduce performance of your web app because of the delay!
11-20-2003, 10:55 AM
size matters, huh?
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.