Wrox Programmer Forums
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 4th, 2007, 01:58 PM
Registered User
Join Date: Sep 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default HttpSession and HttpSessionState

please anybody let me know the difference between
HttpSession and HttpSessionState and Session objects
and also the differences between
httpApplication ,HttpApplicationState and Application Objects.

Old September 5th, 2007, 04:33 PM
Authorized User
Join Date: Mar 2007
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts

HttpSessionState is a class used to represent an instance of a Session, so if you wanted to access the current session you could write something like this:

HttpSessionState currentSession = Page.Session;

As the Session object returns an instance of the HttpSessionState class. Now you can access the members of the HttpSessionState class using the currentSession instance.

The same applies for HttpApplicationState and Application objects.

Similar Threads
Thread Thread Starter Forum Replies Last Post
HttpSession What is and How to? sandip.bhoi VS.NET 2002/2003 3 October 4th, 2007 11:46 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.