What is the difference between Session.Abandon() and Session.Clear()?
The major difference is that if you call Session.Abandon(), Session_End will be fired (for InProc mode), and in the next request, Session_Start will be fired. Session.Clear( ) just clears the session data without killing it.
Can I share session state between web applications (i.e. ‘virtual directories’ or ‘applications’ in IIS)?
No.
Why isn’t session state available?
– First, check your web.config, machine.config and your page directive to make sure you have enabled session state. Reference: Session State @ Page – session state is not available just everywhere, anytime. It is available only after the HttpApplication.AcquireRequestState event is called. For example, it is NOT available in the Application_OnAuthenticateRequest handler inside global.asax. For details, see: Handling Public Events – Lastly, make sure System.Web.SessionState.SessionStateModule is included the in your config files. A common case is that SharePoint application will remove this module from their web.config files (for performance reason), and thus session state isn’t available.
My web.config gives error ‘Unrecognized attribute ‘verb’.’
Probably you have mispelled the attribute. It should be verbs not verb
When I Debug ASP.NET Applications I get error message ‘Access Is Denied. Check the DCOM Configuration Settings for the Machine Debug Manager’
You can get this error if you are user who is trying to remotely debug and you are not a member of the Debugger Users group on the Microsoft Internet Information Server (IIS) server. To add the appropriate user to the Debugger Users group, follow these steps on the Web server: From the Windows Start menu, point to Programs, point to Administrative Tools, and then click Computer Management. In the left pane, click to expand the Computer Management, System Tools, and Local Users and Groups nodes. Click Groups, and then double-click Debugger Users. In the Debugger Users Properties dialog box, click Add. In the Select Users or Groups dialog box, select the appropriate user, and then click OK. Click OK to exit the Debugger Users Properties dialog box. Close the Computer Management explorer.