C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

maximum size of session


Posted Date: 03 Jan 2007      Posted By: sunjutha kaliyamoorthy      Member Level: Bronze     Points: 2   Responses: 3



hi, can anybody tell me what is the maximum size of the session. is it advisable to add dataset in session? thanks, Sunjutha




Responses

Author: veeresh    03 Jan 2007Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

u can store dataset in session varible.if the dataset size is large,then application performance will decrese.
Use session state variables to store data that is specific to one session or user. The data is stored entirely on the server. Use it for bulky or sensitive data.



Author: veeresh    03 Jan 2007Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

There are several factors to consider when implementing session variables in your application. The first and most obvious factor is the amount of concurrent users in your application. This means an estimate of the maximum amount of users logged into your system at the same time during your peak hours. If this number is in the 100’s for your system chances are your scalability will be fine given a reasonable amount of server RAM.
If your application has thousands of concurrent users you have to be much more careful about not only the amount of session objects, but the storage capacity of those objects. Consider 10,000 concurrent users each with 10K of session data and suddenly your ASP.NET worker process is consuming hundreds of Megs of RAM. Your scalability curve should always be linear, whereby your system resource usage is directly proportional to your number of concurrent users. If you notice your server memory decreasing at a greater curve with the more users you add, it’s probably a good idea to step back and do a performance review.
Outside of the concurrent user factor there are some general do’s and don’ts with session objects. You should always consider the storage capacity of the objects you place into the session. For example, you should never take the results of a database query and store it in the session. Datasets, datatables, dataviews should all be considered off-limits when it comes to session storage.
The best types of objects to place into the session are simple basic pieces of information which help provide shortcuts and a more customized user interface. User name, location, even basic preferences are good candidates for session storage because they don’t consume much memory.



Author: Vadivel Mohanakrishnan    03 Jan 2007Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

1. Yes you can store Dataset within a Session object. But be careful and have an eye on performance of your system.

2. Size of session depends on Memory of the system. If you are storing the session values in Database then it depends on the hard disk space.

Best Regards
Vadivel

MVP SQL Server
http://vadivel.blogspot.com



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : error
Previous : customizing datagrid by adding link columns
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use