session vars how many is to many ?

Discussion in 'ASP .Net' started by =?Utf-8?B?U3R1?=, Mar 5, 2005.

  1. Hi,

    I ve read a while ago that you should use session variables
    sparingly ?

    So the question im asking is how many is to many?
    is it server memory dependant and therefore i can just use more ram ?
    is there any calculation u can do to determin how much memroy session is
    taking up per user ?

    Etc

    I have a session class which holds about 20 set/get properties which i write
    to session

    TIA

    Stu
     
    =?Utf-8?B?U3R1?=, Mar 5, 2005
    #1
    1. Advertisements

  2. Probably just limited by memory.

    "Stu" <> wrote in message
    news:...
    > Hi,
    >
    > I ve read a while ago that you should use session variables
    > sparingly ?
    >
    > So the question im asking is how many is to many?
    > is it server memory dependant and therefore i can just use more ram ?
    > is there any calculation u can do to determin how much memroy session is
    > taking up per user ?
    >
    > Etc
    >
    > I have a session class which holds about 20 set/get properties which i
    > write
    > to session
    >
    > TIA
    >
    > Stu
     
    Peter Rilling, Mar 5, 2005
    #2
    1. Advertisements

  3. Hi,

    Actually there is no count for the max limit of session variable count....
    but when the no. grows...the memorey consumed byur app. also grows...

    Read more here.... http://www.eggheadcafe.com/articles/20021016.asp

    Cheers,

    Jerome. M

    "Stu" wrote:

    > Hi,
    >
    > I ve read a while ago that you should use session variables
    > sparingly ?
    >
    > So the question im asking is how many is to many?
    > is it server memory dependant and therefore i can just use more ram ?
    > is there any calculation u can do to determin how much memroy session is
    > taking up per user ?
    >
    > Etc
    >
    > I have a session class which holds about 20 set/get properties which i write
    > to session
    >
    > TIA
    >
    > Stu
     
    =?Utf-8?B?RG90TmV0SmVyb21l?=, Mar 5, 2005
    #3
  4. =?Utf-8?B?U3R1?=

    WJ Guest

    "Stu" <> wrote in message
    news:...
    > Hi,
    >
    > I ve read a while ago that you should use session variables
    > sparingly ?


    If stored to disk then it should not matter as long as there is space on
    disk.

    John
     
    WJ, Mar 5, 2005
    #4
  5. =?Utf-8?B?U3R1?=

    gaidar Guest

    But if session object will grow in size to VERY BIG then performance of your
    application decreases. So - test, test and test before publish your
    application to production server.

    "WJ" <> wrote in message
    news:...
    >
    > "Stu" <> wrote in message
    > news:...
    >> Hi,
    >>
    >> I ve read a while ago that you should use session variables
    >> sparingly ?

    >
    > If stored to disk then it should not matter as long as there is space on
    > disk.
    >
    > John
    >
    >
     
    gaidar, Mar 5, 2005
    #5
  6. =?Utf-8?B?U3R1?=

    WJ Guest

    "gaidar" <> wrote in message
    news:%...
    >
    > But if session object will grow in size to VERY BIG ....


    If session ever reaches this ...magnitude.... Then one should reconsider
    design strategy for the application. To me, session is for application/user
    experiences or so called "convenience". Such repetitive data as punching in
    user Login credential or names... or data that is considered short term are
    suitable for session. For performances over port 80, if you have to deliver
    100,000 records per request, then the application is not suitable for
    interactive web usage.

    John
     
    WJ, Mar 5, 2005
    #6
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. MS News \(MS ILM\)

    Re: storing session vars in C# - another problem

    MS News \(MS ILM\), Aug 15, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    4,944
    APIJunkie
    Jan 12, 2008
  2. Bill Dodd
    Replies:
    4
    Views:
    543
    Bill Dodd
    Nov 13, 2003
  3. Sky
    Replies:
    0
    Views:
    449
  4. JDP@Work

    ASP Session Vars to ASP.Net

    JDP@Work, Aug 27, 2004, in forum: ASP .Net
    Replies:
    6
    Views:
    2,635
    JDP@Work
    Aug 27, 2004
  5. Jon

    app vars and cache vars

    Jon, Dec 14, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    666
  6. Guy
    Replies:
    2
    Views:
    3,201
    bruce barker
    Jan 13, 2005
  7. Linuxguy123
    Replies:
    7
    Views:
    947
    Paddy O'Loughlin
    Feb 20, 2009
  8. caccolangrifata
    Replies:
    18
    Views:
    575
    Chris Torek
    Jul 22, 2011
Loading...