HttpContext.Current.Session - should i or shouldn't i

Discussion in 'ASP .Net' started by =?Utf-8?B?Q2FsdmluIEtE?=, Jun 7, 2005.

  1. Hi everyone,
    I'm in the process of converting all our apps Session variables
    (Session("something") = "something else"). I have a few values which I'd like
    to store in memory (per session). These values may or may not be frequently
    changed during the course of the session. Because of the possibility of the
    web app being shared across multiple processors (servers), the Session("")
    can lose its value, therefore I'd like to store it somewhere so that it can
    retain its value independent of the hardware.
    First of all, is HttpContext.Current.Session("Something") the same as
    Session("Something")? If it is then ...doh!.. is there any other ways of
    storing it?
    If it's not....yey!.. then can i use it to store session values without
    worrying about it losing its value as it goes from one processor to the next?

    Any suggestion is greatly welcomed.
    KD
    =?Utf-8?B?Q2FsdmluIEtE?=, Jun 7, 2005
    #1
    1. Advertising

  2. =?Utf-8?B?Q2FsdmluIEtE?=

    Josh Guest

    You can set the web server to store session data in a SQL server, google for
    that old bean.
    Josh, Jun 7, 2005
    #2
    1. Advertising

  3. =?Utf-8?B?Q2FsdmluIEtE?=, Jun 15, 2005
    #3
    1. Advertising

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. moondaddy
    Replies:
    2
    Views:
    17,887
    Eric Lawrence [MSFT]
    Feb 29, 2004
  2. Kevin Yu
    Replies:
    5
    Views:
    562
    Kevin Yu
    Jan 25, 2005
  3. Jason
    Replies:
    15
    Views:
    7,575
    Patrice
    Feb 11, 2005
  4. Replies:
    2
    Views:
    713
    William F. Robertson, Jr.
    May 16, 2005
  5. Tony

    Dim context As HttpContext = HttpContext.Current

    Tony, Mar 2, 2004, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    288
    Teemu Keiski
    Mar 3, 2004
Loading...

Share This Page