You can use:
HttpContext.Current.Session
But it will be null
unless you also specify EnableSession=true
:
[System.Web.Services.WebMethod(EnableSession = true)]
public static String checaItem(String id)
{
return "zeta";
}
More Related Contents:
- Session Variable with if/else statement in Views?
- Keeping ASP.NET Session Open / Alive
- Web app blocked while processing another web app on sharing same session
- How to set session timeout in web.config
- Advantages of Cache vs Session
- Access HttpContext.Current from different threads
- HttpContext.Current.Session is null in Ashx file
- What is the best way to determine a session variable is null or empty in C#?
- C# keep session id over httpwebrequest
- How to delete cookies on an ASP.NET website
- How to Kill A Session or Session ID (ASP.NET/C#)
- How to share sessions between PHP and ASP.net application?
- What is the difference between a Session and a Cookie in ASP.net?
- Unable to serialize the session state
- How can I upload a file and save it to a Stream for further preview using C#?
- C# Clear Session
- how safe is it to use session variables – asp.net / c#
- Can OWIN middleware use the http session?
- ‘Session’ does not exist in the current context
- How to create a simple proxy in C#?
- Headless browser for C# (.NET)? [closed]
- LINQ To Entities does not recognize the method Last. Really?
- Replace only some groups with Regex
- Send a File to the Recycle Bin
- How to check if another instance of the application is running [duplicate]
- Using WebClient in C# is there a way to get the URL of a site after being redirected?
- Rounding integers to nearest multiple of 10 [duplicate]
- Show Authentication dialog in C# for windows Vista/7
- Syncing SQL Server 2008 Databases over HTTP using WCF & Sync Framework
- Is it possible to switch rows and columns in a datagridview?