Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Session State

    Hi,

    I understand that there are 3 modes in which I can
    configure the SessionStateModule. What I need is an out of
    process Session State store with fail over support.
    The "SQL Server Mode" seems to be it, but I heard there is
    quite a bit of degradation in performance for using this
    mode. My next option is the "State Server Mode". However,
    this mode does not give me the fail over support. Is there
    anything that I can do the enhance the "State Server Mode"
    to provide fail over support, such as dedicating 2 Session
    State servers instead of 1, and adding the hooks to
    replicate the session states from one server to the next?

    Thanks in advance for your help.
    --Nhi Lam

    Nhi Lam Guest

  2. Similar Questions and Discussions

    1. Session state IIS (Machine Key | Load Balanced Session)
      This is a classic ASP group. Try microsoft.public.dotnet.framework.aspnet "Fred" <me@me.com> wrote in message...
    2. session state ???
      Hi, I have following function in a WebService-class : public int Count() { if ( null == Session ) Session = 0; else
    3. Using a SQL DB for session state.
      I have encountered a problem when I restart a SQL server I lose my session variables for ASP.NET It seems that the Temp table cannot be used...
    4. Asp Session state ??
      I'm pretty new to asp. It seems that I am assigning to the session rather than comparing against. I want to compare it in the first peice of code...
    5. Session state...
      Why are you calling a webservice that is within the same app. Shouldn't the web service be on a different server or at least be a different IIS...
  3. #2

    Default RE: Session State

    Hi Yan-Hong Huang,

    Thanks for the response. I can't use the "SQL Server Mode"
    because of performance reasons. So my only option is
    the "Out of Process mode". However, I am concerned that
    when the computer that hosts the stateserver service
    crashes, then all of our users will lose their sessions.
    What I'd like to know is if there's a way to run 2
    computers to host the stateserver service and have them
    replicate the session states among themselves. In this
    way, if one computer crashes, the other one can take over.

    Thanks,
    --Nhi Lam
    >-----Original Message-----
    >Hello Nhi,
    >
    >From MSDN:
    >StateServer: Alternately, StateServer mode uses a stand-
    alone Microsoft
    >Windows service to store session variables. Because this
    service is
    >independent of Microsoft Internet Information Server
    (IIS), it can run on a
    >separate server. You can use this mode for a load-
    balancing solution
    >because multiple Web servers can share session variables.
    Although session
    >variables are not lost if you restart IIS, performance is
    impacted when you
    >cross process boundaries.
    >
    >So we could just use one stateserver service.
    >
    >When we are considering these three types of ASP.NET
    session state modes,
    >It's worth mentioning, briefly, some of the performance
    and reliability
    >issue.
    >
    >In process:
    >In process will perform best because the session state
    memory is kept
    >within the ASP.NET process. For Web applications hosted
    on a single server,
    >applications in which the user is guaranteed to be re-
    directed to the
    >correct server, or when session state data is not
    critical (in the sense
    >that it can be re-constructed or re-populated), this is
    the mode to choose.
    >
    >Out of process:
    >This mode is best used when performance is important but
    you can't
    >guarantee which server a user will request an application
    from. With
    >out-of-process mode, you get the performance of reading
    from memory and the
    >reliability of a separate process that manages the state
    for all servers.
    >
    >SQL Server:
    >This mode is best used when the reliability of the data
    is fundamental to
    >the stability of the application, as the database can be
    clustered for
    >failure scenarios. The performance isn't as fast as out
    of process, but the
    >tradeoff is the higher level of reliability.
    >
    >Hope it helps.
    >
    >Best regards,
    >yhhuang
    >VS.NET, Visual C++
    >Microsoft
    >
    >This posting is provided "AS IS" with no warranties, and
    confers no rights.
    >Got .Net? [url]http://www.gotdotnet.com[/url]
    >--------------------
    >!Content-Class: urn:content-classes:message
    >!From: "Nhi Lam" <nhilam@secretplace.com>
    >!Sender: "Nhi Lam" <nhilam@secretplace.com>
    >!Subject: Session State
    >!Date: Tue, 24 Jun 2003 09:56:31 -0700
    >!Lines: 17
    >!Message-ID: <0f6401c33a71$8fb4eba0$a601280a@phx.gbl>
    >!MIME-Version: 1.0
    >!Content-Type: text/plain;
    >! charset="iso-8859-1"
    >!Content-Transfer-Encoding: 7bit
    >!X-Newsreader: Microsoft CDO for Windows 2000
    >!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
    >!Thread-Index: AcM6cY+0trTuqTayQ36G3C1UQ8lEpw==
    >!Newsgroups: microsoft.public.dotnet.framework.aspnet
    >!Path: cpmsftngxa06.phx.gbl
    >!Xref: cpmsftngxa06.phx.gbl
    microsoft.public.dotnet.framework.aspnet:154539
    >!NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
    >!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
    >!
    >!Hi,
    >!
    >!I understand that there are 3 modes in which I can
    >!configure the SessionStateModule. What I need is an out
    of
    >!process Session State store with fail over support.
    >!The "SQL Server Mode" seems to be it, but I heard there
    is
    >!quite a bit of degradation in performance for using this
    >!mode. My next option is the "State Server Mode".
    However,
    >!this mode does not give me the fail over support. Is
    there
    >!anything that I can do the enhance the "State Server
    Mode"
    >!to provide fail over support, such as dedicating 2
    Session
    >!State servers instead of 1, and adding the hooks to
    >!replicate the session states from one server to the next?
    >!
    >!Thanks in advance for your help.
    >!--Nhi Lam
    >!
    >!
    >
    >.
    >
    Nhi Lam Guest

  4. #3

    Default RE: Session State

    Hello Nhi,

    I will send email to confirm if there is any way to do it. I will get back
    here ASAP. Thanks.

    Best regards,
    yhhuang
    VS.NET, Visual C++
    Microsoft

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Got .Net? [url]http://www.gotdotnet.com[/url]
    --------------------
    !Content-Class: urn:content-classes:message
    !From: "Nhi Lam" <nhilam@secretplace.com>
    !Sender: "Nhi Lam" <nhilam@secretplace.com>
    !References: <0f6401c33a71$8fb4eba0$a601280a@phx.gbl>
    <SmCrvSuODHA.2284@cpmsftngxa06.phx.gbl>
    !Subject: RE: Session State
    !Date: Wed, 25 Jun 2003 10:11:37 -0700
    !Lines: 131
    !Message-ID: <0dae01c33b3c$d6468c10$a601280a@phx.gbl>
    !MIME-Version: 1.0
    !Content-Type: text/plain;
    ! charset="iso-8859-1"
    !Content-Transfer-Encoding: 7bit
    !X-Newsreader: Microsoft CDO for Windows 2000
    !X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
    !Thread-Index: AcM7PNZGkJX6wA7rR3yThb0LtTTt5A==
    !Newsgroups: microsoft.public.dotnet.framework.aspnet
    !Path: cpmsftngxa06.phx.gbl
    !Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:154852
    !NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
    !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
    !
    !Hi Yan-Hong Huang,
    !
    !Thanks for the response. I can't use the "SQL Server Mode"
    !because of performance reasons. So my only option is
    !the "Out of Process mode". However, I am concerned that
    !when the computer that hosts the stateserver service
    !crashes, then all of our users will lose their sessions.
    !What I'd like to know is if there's a way to run 2
    !computers to host the stateserver service and have them
    !replicate the session states among themselves. In this
    !way, if one computer crashes, the other one can take over.
    !
    !Thanks,
    !--Nhi Lam
    !
    !>-----Original Message-----
    !>Hello Nhi,
    !>
    !>From MSDN:
    !>StateServer: Alternately, StateServer mode uses a stand-
    !alone Microsoft
    !>Windows service to store session variables. Because this
    !service is
    !>independent of Microsoft Internet Information Server
    !(IIS), it can run on a
    !>separate server. You can use this mode for a load-
    !balancing solution
    !>because multiple Web servers can share session variables.
    !Although session
    !>variables are not lost if you restart IIS, performance is
    !impacted when you
    !>cross process boundaries.
    !>
    !>So we could just use one stateserver service.
    !>
    !>When we are considering these three types of ASP.NET
    !session state modes,
    !>It's worth mentioning, briefly, some of the performance
    !and reliability
    !>issue.
    !>
    !>In process:
    !>In process will perform best because the session state
    !memory is kept
    !>within the ASP.NET process. For Web applications hosted
    !on a single server,
    !>applications in which the user is guaranteed to be re-
    !directed to the
    !>correct server, or when session state data is not
    !critical (in the sense
    !>that it can be re-constructed or re-populated), this is
    !the mode to choose.
    !>
    !>Out of process:
    !>This mode is best used when performance is important but
    !you can't
    !>guarantee which server a user will request an application
    !from. With
    !>out-of-process mode, you get the performance of reading
    !from memory and the
    !>reliability of a separate process that manages the state
    !for all servers.
    !>
    !>SQL Server:
    !>This mode is best used when the reliability of the data
    !is fundamental to
    !>the stability of the application, as the database can be
    !clustered for
    !>failure scenarios. The performance isn't as fast as out
    !of process, but the
    !>tradeoff is the higher level of reliability.
    !>
    !>Hope it helps.
    !>
    !>Best regards,
    !>yhhuang
    !>VS.NET, Visual C++
    !>Microsoft
    !>
    !>This posting is provided "AS IS" with no warranties, and
    !confers no rights.
    !>Got .Net? [url]http://www.gotdotnet.com[/url]
    !>--------------------
    !>!Content-Class: urn:content-classes:message
    !>!From: "Nhi Lam" <nhilam@secretplace.com>
    !>!Sender: "Nhi Lam" <nhilam@secretplace.com>
    !>!Subject: Session State
    !>!Date: Tue, 24 Jun 2003 09:56:31 -0700
    !>!Lines: 17
    !>!Message-ID: <0f6401c33a71$8fb4eba0$a601280a@phx.gbl>
    !>!MIME-Version: 1.0
    !>!Content-Type: text/plain;
    !>! charset="iso-8859-1"
    !>!Content-Transfer-Encoding: 7bit
    !>!X-Newsreader: Microsoft CDO for Windows 2000
    !>!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
    !>!Thread-Index: AcM6cY+0trTuqTayQ36G3C1UQ8lEpw==
    !>!Newsgroups: microsoft.public.dotnet.framework.aspnet
    !>!Path: cpmsftngxa06.phx.gbl
    !>!Xref: cpmsftngxa06.phx.gbl
    !microsoft.public.dotnet.framework.aspnet:154539
    !>!NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
    !>!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
    !>!
    !>!Hi,
    !>!
    !>!I understand that there are 3 modes in which I can
    !>!configure the SessionStateModule. What I need is an out
    !of
    !>!process Session State store with fail over support.
    !>!The "SQL Server Mode" seems to be it, but I heard there
    !is
    !>!quite a bit of degradation in performance for using this
    !>!mode. My next option is the "State Server Mode".
    !However,
    !>!this mode does not give me the fail over support. Is
    !there
    !>!anything that I can do the enhance the "State Server
    !Mode"
    !>!to provide fail over support, such as dedicating 2
    !Session
    !>!State servers instead of 1, and adding the hooks to
    !>!replicate the session states from one server to the next?
    !>!
    !>!Thanks in advance for your help.
    !>!--Nhi Lam
    !>!
    !>!
    !>
    !>.
    !>
    !

    Yan-Hong Huang[MSFT] Guest

  5. #4

    Default RE: Session State

    Hello Nhi,

    It¡¯s impossible to have two stateserver services running for state
    management. If rebustness is really a concern, we could only use SQL
    Server with clustering.

    For details, see this FAQ:
    [url]http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=7504[/url]

    Hope it helps.

    Best regards,
    yhhuang
    VS.NET, Visual C++
    Microsoft

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Got .Net? [url]http://www.gotdotnet.com[/url]
    --------------------
    !Content-Class: urn:content-classes:message
    !From: "Nhi Lam" <nhilam@secretplace.com>
    !Sender: "Nhi Lam" <nhilam@secretplace.com>
    !References: <0f6401c33a71$8fb4eba0$a601280a@phx.gbl>
    <SmCrvSuODHA.2284@cpmsftngxa06.phx.gbl>
    !Subject: RE: Session State
    !Date: Wed, 25 Jun 2003 10:11:37 -0700
    !Lines: 131
    !Message-ID: <0dae01c33b3c$d6468c10$a601280a@phx.gbl>
    !MIME-Version: 1.0
    !Content-Type: text/plain;
    ! charset="iso-8859-1"
    !Content-Transfer-Encoding: 7bit
    !X-Newsreader: Microsoft CDO for Windows 2000
    !X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
    !Thread-Index: AcM7PNZGkJX6wA7rR3yThb0LtTTt5A==
    !Newsgroups: microsoft.public.dotnet.framework.aspnet
    !Path: cpmsftngxa06.phx.gbl
    !Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:154852
    !NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
    !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
    !
    !Hi Yan-Hong Huang,
    !
    !Thanks for the response. I can't use the "SQL Server Mode"
    !because of performance reasons. So my only option is
    !the "Out of Process mode". However, I am concerned that
    !when the computer that hosts the stateserver service
    !crashes, then all of our users will lose their sessions.
    !What I'd like to know is if there's a way to run 2
    !computers to host the stateserver service and have them
    !replicate the session states among themselves. In this
    !way, if one computer crashes, the other one can take over.
    !
    !Thanks,
    !--Nhi Lam
    !
    !>-----Original Message-----
    !>Hello Nhi,
    !>
    !>From MSDN:
    !>StateServer: Alternately, StateServer mode uses a stand-
    !alone Microsoft
    !>Windows service to store session variables. Because this
    !service is
    !>independent of Microsoft Internet Information Server
    !(IIS), it can run on a
    !>separate server. You can use this mode for a load-
    !balancing solution
    !>because multiple Web servers can share session variables.
    !Although session
    !>variables are not lost if you restart IIS, performance is
    !impacted when you
    !>cross process boundaries.
    !>
    !>So we could just use one stateserver service.
    !>
    !>When we are considering these three types of ASP.NET
    !session state modes,
    !>It's worth mentioning, briefly, some of the performance
    !and reliability
    !>issue.
    !>
    !>In process:
    !>In process will perform best because the session state
    !memory is kept
    !>within the ASP.NET process. For Web applications hosted
    !on a single server,
    !>applications in which the user is guaranteed to be re-
    !directed to the
    !>correct server, or when session state data is not
    !critical (in the sense
    !>that it can be re-constructed or re-populated), this is
    !the mode to choose.
    !>
    !>Out of process:
    !>This mode is best used when performance is important but
    !you can't
    !>guarantee which server a user will request an application
    !from. With
    !>out-of-process mode, you get the performance of reading
    !from memory and the
    !>reliability of a separate process that manages the state
    !for all servers.
    !>
    !>SQL Server:
    !>This mode is best used when the reliability of the data
    !is fundamental to
    !>the stability of the application, as the database can be
    !clustered for
    !>failure scenarios. The performance isn't as fast as out
    !of process, but the
    !>tradeoff is the higher level of reliability.
    !>
    !>Hope it helps.
    !>
    !>Best regards,
    !>yhhuang
    !>VS.NET, Visual C++
    !>Microsoft
    !>
    !>This posting is provided "AS IS" with no warranties, and
    !confers no rights.
    !>Got .Net? [url]http://www.gotdotnet.com[/url]
    !>--------------------
    !>!Content-Class: urn:content-classes:message
    !>!From: "Nhi Lam" <nhilam@secretplace.com>
    !>!Sender: "Nhi Lam" <nhilam@secretplace.com>
    !>!Subject: Session State
    !>!Date: Tue, 24 Jun 2003 09:56:31 -0700
    !>!Lines: 17
    !>!Message-ID: <0f6401c33a71$8fb4eba0$a601280a@phx.gbl>
    !>!MIME-Version: 1.0
    !>!Content-Type: text/plain;
    !>! charset="iso-8859-1"
    !>!Content-Transfer-Encoding: 7bit
    !>!X-Newsreader: Microsoft CDO for Windows 2000
    !>!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
    !>!Thread-Index: AcM6cY+0trTuqTayQ36G3C1UQ8lEpw==
    !>!Newsgroups: microsoft.public.dotnet.framework.aspnet
    !>!Path: cpmsftngxa06.phx.gbl
    !>!Xref: cpmsftngxa06.phx.gbl
    !microsoft.public.dotnet.framework.aspnet:154539
    !>!NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
    !>!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
    !>!
    !>!Hi,
    !>!
    !>!I understand that there are 3 modes in which I can
    !>!configure the SessionStateModule. What I need is an out
    !of
    !>!process Session State store with fail over support.
    !>!The "SQL Server Mode" seems to be it, but I heard there
    !is
    !>!quite a bit of degradation in performance for using this
    !>!mode. My next option is the "State Server Mode".
    !However,
    !>!this mode does not give me the fail over support. Is
    !there
    !>!anything that I can do the enhance the "State Server
    !Mode"
    !>!to provide fail over support, such as dedicating 2
    !Session
    !>!State servers instead of 1, and adding the hooks to
    !>!replicate the session states from one server to the next?
    !>!
    !>!Thanks in advance for your help.
    !>!--Nhi Lam
    !>!
    !>!
    !>
    !>.
    !>
    !

    Yan-Hong Huang[MSFT] Guest

  6. #5

    Default Session State

    I need a way to pass session variables from a classic asp
    page to an asp.net page. I can not use a query string
    since the one does not call the other. In addition, i'm
    looking for more of a one application scope and not all
    the applications under the wwwroot thus it does not have
    to be but so generic.

    Any ideas?

    Thanks
    Demetri Guest

  7. #6

    Default RE: Session State

    Here is an article that might give you some ideas on this:
    [url]http://www.eggheadcafe.com/articles/20021207.asp[/url]

    Chris Moore[MSFT]

    --------------------
    >Content-Class: urn:content-classes:message
    >From: "Demetri" <Reject@spam.com>
    >Sender: "Demetri" <Reject@spam.com>
    >Subject: Session State
    >Date: Wed, 9 Jul 2003 07:47:02 -0700
    >Lines: 10
    >Message-ID: <98e301c34628$f543e710$a401280a@phx.gbl>
    >MIME-Version: 1.0
    >Content-Type: text/plain;
    > charset="iso-8859-1"
    >Content-Transfer-Encoding: 7bit
    >X-Newsreader: Microsoft CDO for Windows 2000
    >Thread-Index: AcNGKPVD7PcO0UoJTyWyeiuBgH9oSA==
    >X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
    >Newsgroups: microsoft.public.dotnet.framework.aspnet
    >NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
    >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!cpmsftng xa09.phx.gbl
    >Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:158016
    >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
    >
    >I need a way to pass session variables from a classic asp
    >page to an asp.net page. I can not use a query string
    >since the one does not call the other. In addition, i'm
    >looking for more of a one application scope and not all
    >the applications under the wwwroot thus it does not have
    >to be but so generic.
    >
    >Any ideas?
    >
    >Thanks
    >

    --

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Use of included script samples are subject to the terms specified at
    [url]http://www.microsoft.com/info/cpyright.htm[/url]

    Note: For the benefit of the community-at-large, all responses to this
    message are best directed to the newsgroup/thread from which they
    originated.

    Chris Moore [MSFT] Guest

  8. #7

    Default session state

    The situation:
    We have a table that contains usercontrols. In the
    usercontrols, there is input that we want to keep
    throughout the session.

    But are finding it difficult to get the variable values
    from other usercontrols.

    What does .NET suggest we do now that we are discouraged
    from using Session variables?

    Thanks for any help!

    chris
    chris w. Guest

  9. #8

    Default Re: session state

    Why are you discouraged from using session variables?

    ..NET does not discourage the use of session variables. That is why it has 3
    different models for maintaining session state.

    "chris w." <cbw@onlinech2m.com> wrote in message
    news:0baa01c34c79$63883310$a501280a@phx.gbl...
    > The situation:
    > We have a table that contains usercontrols. In the
    > usercontrols, there is input that we want to keep
    > throughout the session.
    >
    > But are finding it difficult to get the variable values
    > from other usercontrols.
    >
    > What does .NET suggest we do now that we are discouraged
    > from using Session variables?
    >
    > Thanks for any help!
    >
    > chris

    Marina Guest

  10. #9

    Default Re: session state

    Agreed. In fact, you could say that ASP.NET promotes the use of more session
    state management than previous ASP did.

    :)

    Bill P.

    "Marina" <zlatkinam@nospam.hotmail.com> wrote in message
    news:OYcnr%23HTDHA.2148@TK2MSFTNGP12.phx.gbl...
    > Why are you discouraged from using session variables?
    >
    > .NET does not discourage the use of session variables. That is why it has
    3
    > different models for maintaining session state.
    >
    > "chris w." <cbw@onlinech2m.com> wrote in message
    > news:0baa01c34c79$63883310$a501280a@phx.gbl...
    > > The situation:
    > > We have a table that contains usercontrols. In the
    > > usercontrols, there is input that we want to keep
    > > throughout the session.
    > >
    > > But are finding it difficult to get the variable values
    > > from other usercontrols.
    > >
    > > What does .NET suggest we do now that we are discouraged
    > > from using Session variables?
    > >
    > > Thanks for any help!
    > >
    > > chris
    >
    >

    Bill Priess Guest

  11. #10

    Default session state

    Any variables I set in the Global.asax as a Session Variable only carry thru
    to the first page. That page is a menu and users hyperlink to another page
    from there without carrying any form data. This page is also 1 level down
    from the root. Session("test") = "anything"

    Am I missing a configuration because values are not carry from page to page.
    Application("test") = "anything" is also failing.

    Max



    encapsul Guest

  12. #11

    Default session state

    Hi,
    How can I handle sessionstate in the custom server controls

    Ton


    ton Guest

  13. #12

    Default Re: session state

    System.Web.HttpContext.Current.Session ?


    --
    Victor Garcia Aprea
    Microsoft MVP | ASP.NET
    Looking for insights on ASP.NET? Read my blog:
    [url]http://obies.com/vga/blog.aspx[/url]
    To contact me remove 'NOSPAM'. Please post all questions to the newsgroup

    "ton" <vrs@home.nl> wrote in message
    news:bvr0cn$lfi$1@news2.tilbu1.nb.home.nl...
    > Hi,
    > How can I handle sessionstate in the custom server controls
    >
    > Ton
    >
    >

    Victor Garcia Aprea [MVP] Guest

  14. #13

    Default Session State

    Is it possible to store session state for each separate user in a separate
    process? We have a COM component that we want to use that is not thread safe
    and has to be isolated. We would like to store this in a separate process
    for each user.

    Thanks for any help


    Colin J Paterson Guest

  15. #14

    Default Re: Session State

    You are storing a binary object in session? This is not recommended and not
    scalable

    Jeff

    "Colin J Paterson" <memexmsdn@memex.com> wrote in message
    news:#oFYX7KyEHA.3400@TK2MSFTNGP10.phx.gbl...
    > Is it possible to store session state for each separate user in a separate
    > process? We have a COM component that we want to use that is not thread
    safe
    > and has to be isolated. We would like to store this in a separate process
    > for each user.
    >
    > Thanks for any help
    >
    >

    Guest

  16. #15

    Default Re: Session State

    An Integer is a binary object. I think you mean that storing a COM object in
    Session is not recommended, right?

    --
    HTH,
    Kevin Spencer
    ..Net Developer
    Microsoft MVP
    Neither a follower
    nor a lender be.

    <jeff@removeemergencyreporting.com> wrote in message
    news:OwG6PGOyEHA.260@TK2MSFTNGP11.phx.gbl...
    > You are storing a binary object in session? This is not recommended and
    not
    > scalable
    >
    > Jeff
    >
    > "Colin J Paterson" <memexmsdn@memex.com> wrote in message
    > news:#oFYX7KyEHA.3400@TK2MSFTNGP10.phx.gbl...
    > > Is it possible to store session state for each separate user in a
    separate
    > > process? We have a COM component that we want to use that is not thread
    > safe
    > > and has to be isolated. We would like to store this in a separate
    process
    > > for each user.
    > >
    > > Thanks for any help
    > >
    > >
    >
    >

    Kevin Spencer Guest

  17. #16

    Default Re: Session State

    I won't even answer that...I hate threads that discuss semantics..when the
    language used is sufficient to communicate the issue.

    An integer is NOT a binary object, it's a base object, in my mind. Of course
    I meant a COM or similiar object. Your post added no new information.

    Jeff


    "Kevin Spencer" <kspencer@takempis.com> wrote in message
    news:#s8gMPOyEHA.3676@TK2MSFTNGP10.phx.gbl...
    > An Integer is a binary object. I think you mean that storing a COM object
    in
    > Session is not recommended, right?
    >
    > --
    > HTH,
    > Kevin Spencer
    > .Net Developer
    > Microsoft MVP
    > Neither a follower
    > nor a lender be.
    >
    > <jeff@removeemergencyreporting.com> wrote in message
    > news:OwG6PGOyEHA.260@TK2MSFTNGP11.phx.gbl...
    > > You are storing a binary object in session? This is not recommended and
    > not
    > > scalable
    > >
    > > Jeff
    > >
    > > "Colin J Paterson" <memexmsdn@memex.com> wrote in message
    > > news:#oFYX7KyEHA.3400@TK2MSFTNGP10.phx.gbl...
    > > > Is it possible to store session state for each separate user in a
    > separate
    > > > process? We have a COM component that we want to use that is not
    thread
    > > safe
    > > > and has to be isolated. We would like to store this in a separate
    > process
    > > > for each user.
    > > >
    > > > Thanks for any help
    > > >
    > > >
    > >
    > >
    >
    >

    Guest

  18. #17

    Default Re: Session State

    > I won't even answer that...I hate threads that discuss semantics..when the
    > language used is sufficient to communicate the issue.
    That's not sematics, and I tried to be nice about it by giving you an out
    ("I think you mean..., right?"). It has nothing to do with a COM object
    being binary. It has everything to do with the threading model. I simply
    used an Integer as an example. In fact, almost everything you store in
    Session State is binary. When people point out my mistakes, I admit them, as
    hard as it is on my flesh to do so, in order to maintain my credibility.

    And BTW, you contradicted yourself by saying that you wouldn't answer that,
    and then answering that.

    --
    HTH,
    Kevin Spencer
    ..Net Developer
    Microsoft MVP
    Neither a follower
    nor a lender be.

    <jeff@removeemergencyreporting.com> wrote in message
    news:uVjobFPyEHA.3400@TK2MSFTNGP10.phx.gbl...
    > I won't even answer that...I hate threads that discuss semantics..when the
    > language used is sufficient to communicate the issue.
    >
    > An integer is NOT a binary object, it's a base object, in my mind. Of
    course
    > I meant a COM or similiar object. Your post added no new information.
    >
    > Jeff
    >
    >
    > "Kevin Spencer" <kspencer@takempis.com> wrote in message
    > news:#s8gMPOyEHA.3676@TK2MSFTNGP10.phx.gbl...
    > > An Integer is a binary object. I think you mean that storing a COM
    object
    > in
    > > Session is not recommended, right?
    > >
    > > --
    > > HTH,
    > > Kevin Spencer
    > > .Net Developer
    > > Microsoft MVP
    > > Neither a follower
    > > nor a lender be.
    > >
    > > <jeff@removeemergencyreporting.com> wrote in message
    > > news:OwG6PGOyEHA.260@TK2MSFTNGP11.phx.gbl...
    > > > You are storing a binary object in session? This is not recommended
    and
    > > not
    > > > scalable
    > > >
    > > > Jeff
    > > >
    > > > "Colin J Paterson" <memexmsdn@memex.com> wrote in message
    > > > news:#oFYX7KyEHA.3400@TK2MSFTNGP10.phx.gbl...
    > > > > Is it possible to store session state for each separate user in a
    > > separate
    > > > > process? We have a COM component that we want to use that is not
    > thread
    > > > safe
    > > > > and has to be isolated. We would like to store this in a separate
    > > process
    > > > > for each user.
    > > > >
    > > > > Thanks for any help
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Kevin Spencer Guest

  19. #18

    Default Re: Session State


    "Kevin Spencer" <kspencer@takempis.com> wrote in message
    news:eGftZhPyEHA.1564@TK2MSFTNGP09.phx.gbl...
    >> When people point out my mistakes, I admit them, as
    > hard as it is on my flesh to do so, in order to maintain my credibility.
    Bravo Kevin! I like it when people point out my mistakes, personally,
    because it reminds me that there is still an infinite amount of stuff to
    learn. Learning is my favorite part of living.

    Ray at work


    Ray Costanzo [MVP] Guest

  20. #19

    Default Re: Session State

    No new information, again. Perhaps we should start a new thread? How does
    this help the OP?

    You are wasting my time. You obviously understood the intent of my original
    message, but chose to "one up".

    Why do I get sucked into this stuff?? :-)

    Jeff

    "Kevin Spencer" <kspencer@takempis.com> wrote in message
    news:eGftZhPyEHA.1564@TK2MSFTNGP09.phx.gbl...
    > > I won't even answer that...I hate threads that discuss semantics..when
    the
    > > language used is sufficient to communicate the issue.
    >
    > That's not sematics, and I tried to be nice about it by giving you an out
    > ("I think you mean..., right?"). It has nothing to do with a COM object
    > being binary. It has everything to do with the threading model. I simply
    > used an Integer as an example. In fact, almost everything you store in
    > Session State is binary. When people point out my mistakes, I admit them,
    as
    > hard as it is on my flesh to do so, in order to maintain my credibility.
    >
    > And BTW, you contradicted yourself by saying that you wouldn't answer
    that,
    > and then answering that.
    >
    > --
    > HTH,
    > Kevin Spencer
    > .Net Developer
    > Microsoft MVP
    > Neither a follower
    > nor a lender be.
    >
    > <jeff@removeemergencyreporting.com> wrote in message
    > news:uVjobFPyEHA.3400@TK2MSFTNGP10.phx.gbl...
    > > I won't even answer that...I hate threads that discuss semantics..when
    the
    > > language used is sufficient to communicate the issue.
    > >
    > > An integer is NOT a binary object, it's a base object, in my mind. Of
    > course
    > > I meant a COM or similiar object. Your post added no new information.
    > >
    > > Jeff
    > >
    > >
    > > "Kevin Spencer" <kspencer@takempis.com> wrote in message
    > > news:#s8gMPOyEHA.3676@TK2MSFTNGP10.phx.gbl...
    > > > An Integer is a binary object. I think you mean that storing a COM
    > object
    > > in
    > > > Session is not recommended, right?
    > > >
    > > > --
    > > > HTH,
    > > > Kevin Spencer
    > > > .Net Developer
    > > > Microsoft MVP
    > > > Neither a follower
    > > > nor a lender be.
    > > >
    > > > <jeff@removeemergencyreporting.com> wrote in message
    > > > news:OwG6PGOyEHA.260@TK2MSFTNGP11.phx.gbl...
    > > > > You are storing a binary object in session? This is not recommended
    > and
    > > > not
    > > > > scalable
    > > > >
    > > > > Jeff
    > > > >
    > > > > "Colin J Paterson" <memexmsdn@memex.com> wrote in message
    > > > > news:#oFYX7KyEHA.3400@TK2MSFTNGP10.phx.gbl...
    > > > > > Is it possible to store session state for each separate user in a
    > > > separate
    > > > > > process? We have a COM component that we want to use that is not
    > > thread
    > > > > safe
    > > > > > and has to be isolated. We would like to store this in a separate
    > > > process
    > > > > > for each user.
    > > > > >
    > > > > > Thanks for any help
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Guest

  21. #20

    Default Re: Session State

    Sure, when I'm wrong, I'll admit it right away. Except when I made myself
    perfectly clear and someone wants attention by arguing in semantics.

    You should not store binary objects in Session. Only base types like
    integers and strings.

    Jeff

    "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
    message news:u5Cqa$PyEHA.1188@tk2msftngp13.phx.gbl...
    >
    > "Kevin Spencer" <kspencer@takempis.com> wrote in message
    > news:eGftZhPyEHA.1564@TK2MSFTNGP09.phx.gbl...
    > >> When people point out my mistakes, I admit them, as
    > > hard as it is on my flesh to do so, in order to maintain my credibility.
    >
    > Bravo Kevin! I like it when people point out my mistakes, personally,
    > because it reminds me that there is still an infinite amount of stuff to
    > learn. Learning is my favorite part of living.
    >
    > Ray at work
    >
    >

    Jeff Dillon Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139