How to access session variable in the class?

Total Post:47

Points:331
 1768  View(s)
Ratings:
Rate this:
Hi!
How to access session variable in the class?
Thank you.
 
  1. Post:131

    Points:943
    Re: How to access session variable in the class?

    String strSessionName="";

    strSessionName= Convert.ToString(httpcontext.current.session["SessionName"]);

      Modified On Oct-15-2010 08:19:14 AM
  1. Post:131

    Points:943
    Re: How to access session variable in the class?

    You can simply use: System.Web.HttpContext.Current.Session 


  1. Post:47

    Points:331
    Re: How to access session variable in the class?


Answer

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.