Sponsored By
Advertise with Us
Advertisement
Advertise with Us
Follow Us
Article
Forum
Blog
Quiz
Beginner
Careers
Contact
Login
Email Id
Password
Remember Me
Forgot Password?
Sign Up
Home
|
Product
|
Services
|
About Us
|
Interview
|
DeveloperSection
|
Submit an Article
|
Submit Blog
Report Abuse Form
Reason:
Home
>>
.Net
>>
ASP.Net
>>
How to access session variable in the class?
Author
Post
Pooja Malohtra
Total Post:
17
Member Since:
10/14/2010
Points:
95
How to access session variable in the class?
Posted On:
10/15/2010 7:48:00 AM
Report Abuse
Hi!
How to access session variable in the class?
Thank you.
Reply
Author
Post
Uttam Misra
Total Post:
113
Member Since:
6/2/2010
Points:
818
Re: How to access session variable in the class?
Posted On:
10/15/2010 8:16:24 AM
Report Abuse
String strSessionName="";
strSessionName= Convert.ToString(httpcontext.current.session["SessionName"]);
Modified On:
10/15/2010 8:19:14 AM
Reply
Author
Post
Uttam Misra
Total Post:
113
Member Since:
6/2/2010
Points:
818
Re: How to access session variable in the class?
Posted On:
10/15/2010 8:17:08 AM
Report Abuse
Answer
You can simply use: System.Web.HttpContext.Current.Session
Reply
Author
Post
Pooja Malohtra
Total Post:
17
Member Since:
10/14/2010
Points:
95
Re: How to access session variable in the class?
Posted On:
10/15/2010 8:23:02 AM
Report Abuse
Reply
Report Abuse Form
Reason:
Total Online Users:
4848
Advertisement
Advertise with Us
Copyright ©
2013
MindStick. All Rights Reserved.
Home
|
Contact Us
|
Services
|
Feedback
|
Advertisement
|
Privacy Policy
|
Term & Conditions
|
About Us