Session in WebService with ASP.NET -Visual Studio 2005 Beta 1 - Please Help

Discussion in 'ASP .Net' started by Juan Irigoyen, Sep 2, 2004.

  1. De: "Juan Irigoyen" <>
    Asunto: Session in WebService with ASP.NET - Please Help
    Fecha: miƩrcoles, 01 de septiembre de 2004 13:33

    I have a page asp that call the webmethod, this make the variable of session
    but when the webmethod return the values stored
    in webmethod lost.

    In the web.config have the next code

    <sessionState mode="InProc" cookieless="false or true"
    timeout="20"></sessionState>


    [WebMethod(EnableSession = true)]
    public int GestionTicket Inicio()
    {
    Session.Add("SesionNivel", 1);
    Session.Add("SesionTipo", "a");
    Session.Add("SesionAccesos", 0);
    return 1;
    }
    Juan Irigoyen, Sep 2, 2004
    #1
    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. Juan Irigoyen
    Replies:
    0
    Views:
    334
    Juan Irigoyen
    Sep 7, 2004
  2. Shapper
    Replies:
    3
    Views:
    2,047
    Kevin Spencer
    Oct 3, 2005
  3. Christian Perthen
    Replies:
    2
    Views:
    432
    =?Utf-8?B?Q293Ym95IChHcmVnb3J5IEEuIEJlYW1lcikgLSBN
    Oct 31, 2005
  4. rockdale
    Replies:
    1
    Views:
    573
    Juan T. Llibre
    Aug 23, 2006
  5. Quickstone

    Object class in ASP.NET (Visual Studio 2005 Beta 1)

    Quickstone, Sep 7, 2004, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    117
    Quickstone
    Sep 7, 2004
Loading...

Share This Page