www.webdeveloper.com
Results 1 to 6 of 6

Thread: asp sessions Question

Hybrid View

  1. #1
    Join Date
    Apr 2003
    Location
    Manchester
    Posts
    23

    asp sessions Question

    I am using the session object to store variables to use through my site, for example:

    Dim strName, strDate, strEmail
    strName = Session("Ben")
    strDate = Session("19 Jan 2004")
    strEmail = Session("ben@yahoo.com")

    My questions are:


    How much does this slow the server down?
    What is the limit to how many of these I can use?

    Thanks

  2. #2
    Join Date
    Nov 2003
    Posts
    655

  3. #3
    Join Date
    Apr 2003
    Location
    Manchester
    Posts
    23
    Thanks you, it has helped me allot.

  4. #4
    Join Date
    Jan 2003
    Location
    USA
    Posts
    688
    Assuming 10 session variables for each of 100 simultaneous users at 100 bytes per session variable only adds up to 100,000 bytes (i.e. 100 KB).

    And a server might easily have over 128 MB of RAM.

    So in my opinion perhaps people don't need to be QUITE so afraid to use some session variables especially for sites that are never expected to have high traffic.
    J. Paul Schmidt
    www.Bullschmidt.com - Freelance Web and Database Developer
    www.Bullschmidt.com/DevTip.asp - Classic ASP Design Tips

  5. #5
    Join Date
    Apr 2003
    Location
    Manchester
    Posts
    23

    Thanks

    Thanks Bull

    That does help and I think that ity does make sence.

    Thanks

    dosch

  6. #6
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    Originally posted by Bullschmidt
    Assuming 10 session variables for each of 100 simultaneous users at 100 bytes per session variable only adds up to 100,000 bytes (i.e. 100 KB).

    And a server might easily have over 128 MB of RAM.

    So in my opinion perhaps people don't need to be QUITE so afraid to use some session variables especially for sites that are never expected to have high traffic.
    Might be so, so the server will not crash. But assume you are not the only one on the server. Session variables do put extra strain on the server and is not considerate to others if you are lagging it up, And vice versa.
    http://www.4guysfromrolla.com/webtec...ced/faq4.shtml
    Last edited by PeOfEo; 02-05-2004 at 03:54 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles