Session in WebService with ASP.NET - Please Help

J

Juan Irigoyen

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" timeout="20"></sessionState>


[WebMethod(EnableSession = true)]
public int GestionTicket Inicio()
{
Session.Add("SesionNivel", 1);
Session.Add("SesionTipo", "a");
Session.Add("SesionAccesos", 0);
return 1;
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top