Re: Session in WebService with ASP.NET - Please Help

Discussion in 'ASP .Net' started by Aaron Robson, Sep 2, 2004.

  1. Aaron  Robson

    Aaron Robson Guest

    Hi Juan,
    Web Services are often 'stateless', and hence a session isn't
    automatically created for you during a webmethod.
    In order to use a session, you need to create and attach a
    CookieContainer (IIRC) to the web service proxy.

    Also, look into SecureConversation - one of the WS* specs which I
    believe is supported by WSE2.0.

    Aaron.
    Aaron Robson, Sep 2, 2004
    #1
    1. Advertising

  2. Remember also that you can control how a web service uses session both
    through the machine.config file (machine overall settings) and on the service
    itself. By default, session is basically ignored (as you have stated).

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

    ***************************
    Think Outside the Box!
    ***************************

    "Aaron Robson" wrote:

    > Hi Juan,
    > Web Services are often 'stateless', and hence a session isn't
    > automatically created for you during a webmethod.
    > In order to use a session, you need to create and attach a
    > CookieContainer (IIRC) to the web service proxy.
    >
    > Also, look into SecureConversation - one of the WS* specs which I
    > believe is supported by WSE2.0.
    >
    > Aaron.
    >
    >
    =?Utf-8?B?Q293Ym95IChHcmVnb3J5IEEuIEJlYW1lcikgLSBN, Sep 2, 2004
    #2
    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. Jeff Smythe
    Replies:
    3
    Views:
    1,229
    Jeff Smythe
    Jan 2, 2004
  2. Juan Irigoyen
    Replies:
    0
    Views:
    453
    Juan Irigoyen
    Sep 2, 2004
  3. Juan Irigoyen
    Replies:
    0
    Views:
    426
    Juan Irigoyen
    Sep 1, 2004
  4. KK
    Replies:
    2
    Views:
    525
    Big Brian
    Oct 14, 2003
  5. jnickfl1
    Replies:
    0
    Views:
    571
    jnickfl1
    Sep 18, 2006
Loading...

Share This Page