473,396 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ASP.Net & Sessions Question

Hi all friends:

It's said that Sessions objects in ASP 3.0 with IIS 5.0 occupy certain memory of the machine which take to take care about use a lot of Sessions objects in the ASPs pages of the applications.

So my question is about how recommendable is to use a lot of Sessions objects in ASP.Net I want to use in my application 30 of this objects. Im gonna use them for give permissions to the users of the application.

Regards.

Nov 18 '05 #1
3 1403
It really depends on your requirements. Performance? Scalability? etc. I recommend that you read the section in the .NET Framework SDK documentation about session management

Tu-Thac

----- Miguel wrote: ----

Hi all friends

It's said that Sessions objects in ASP 3.0 with IIS 5.0 occupy certain memory of the machine which take to take care about use a lot of Sessions objects in the ASPs pages of the applications

So my question is about how recommendable is to use a lot of Sessions objects in ASP.Net I want to use in my application 30 of this objects. Im gonna use them for give permissions to the users of the application

Regards

Nov 18 '05 #2
couldnt exactly get your question but i will try and give you an idea on how
to store objects

1. Application: you can store objects in application if you want to share it
between users. That was the way ASP 2.0 and 3.0 gave you the option.
With ASP.NET the worker process is bounced if it exceeds 60% of the
physical memory and if you start adding objects it might initiate the
bouncing.

2. Cache: This is the place to store all your global information Cache is a
smart object. When you insert an object in Cache... you set up the priority
and callbacks if any (if a method you need to explicitly call if the object
is unloaded from the memory). You can also set things like absolute
expiration and sliding expiration. If the cache is filled up and you try and
insert an object or if application memory usuage goes up... the objects in
cache as cleared based on their priority (callback functions if any will be
called)

3. Session objects: This is where you store user specific data. ie if each
user has data which is not common you user session to store the object

Hope this are clear....

--

Regards,

HD
"Miguel" <an*******@discussions.microsoft.com> wrote in message
news:7F**********************************@microsof t.com...
Hi all friends:

It's said that Sessions objects in ASP 3.0 with IIS 5.0 occupy certain memory of the machine which take to take care about use a lot of Sessions
objects in the ASPs pages of the applications.
So my question is about how recommendable is to use a lot of Sessions objects in ASP.Net I want to use in my application 30 of this objects. Im
gonna use them for give permissions to the users of the application.
Regards.

Nov 18 '05 #3
Session objects are not as bad under ASP.NET, but I would not use it as a
primary means of semi-persistant storage. 30 different values is a bit
overboard, but not terribly. 30 different objects per user could be postal.
Look at what you are trying to accomplish before making a decision. If the
data is eventually saved off, a temporary storage location (other database
tables) might be preferable if most people save this data off.

Without understanding your app, I can only be general about design.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Miguel" <an*******@discussions.microsoft.com> wrote in message
news:7F**********************************@microsof t.com...
Hi all friends:

It's said that Sessions objects in ASP 3.0 with IIS 5.0 occupy certain memory of the machine which take to take care about use a lot of Sessions
objects in the ASPs pages of the applications.
So my question is about how recommendable is to use a lot of Sessions objects in ASP.Net I want to use in my application 30 of this objects. Im
gonna use them for give permissions to the users of the application.
Regards.

Nov 18 '05 #4

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

Similar topics

13
by: jing_li | last post by:
Hi, you all, I am a newbee for php and I need your help. One of my coworker and I are both developing a webpage for our project using php. We have a copy of the same files in different location...
5
by: Raju V.K | last post by:
I am developing a web site which requires a set og unique values be transferred between pages and server many times. There fore i decided to put the values in an array so that only one reference to...
0
by: Gitesh | last post by:
..................... CALL FOR PAPERS ..................... The 2004 International Multiconference in Computer Science and Computer Engineering (18 Joint Int'l Conferences)...
2
by: Ik Ben Het | last post by:
Hello, I posted a simular question in the "IIS Security" group but it think it is more usefull to post it here. I want to do something very simpel. Make a part of my website available only...
19
by: Ramon | last post by:
Hello all, Over the last couple of month, since the release of PHP 5 I have been involved in a number of heated discussions which sometimes reduced them selves to blatant name calling and an...
2
by: John A Grandy | last post by:
for high traffic public websites , what are the proven options for session-state storage & management ? is an out-of-process state-server generally preferred over a sql-server ? what are the...
5
by: afshar | last post by:
Hi everbody, I've an old ASP classic application that uses sessions frequently. I have added some new ASP.NET 2 new pages to that old application. How can I interact with sessions that are made...
0
by: Vijay | last post by:
Prep Courses for International Certifications, CSTE & CSQA & ISEB & ISTQB &Business Analyst & SOA Certifications in HYDERABAD. After receiving overwhelming response to our last 50+ batches, ...
3
by: at_the_gonq | last post by:
Hello, I am hoping to get some guidance on the following scenerio: I have a password protected site where users have various permissions. Are sessions the best way of storing the user's id? ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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,...
0
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...
0
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,...
0
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...
0
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,...

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.