By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,639 Members | 2,340 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,639 IT Pros & Developers. It's quick & easy.

enablesesSionState

P: n/a
I am attempting to move my asp.net application to Windows Server
2003 with Windows Sharepoint Services (beta) installed. The application
was working fine in 2000 with Sharepoint Team Services installed.

On the Windows 2003 server my default.aspx page opens fine, but
when I link to another page I get the following error:

"Session state can only be used when enableSessionStae is set to true,
either in a configuration file or in the Page Directive."

As I understand it after poking around the web, this problem is
possibly related to the sharepoint installation. For some reason now my
state variables cannot be used until I have enabled session state.

I have tried the following without success.

In my web.config file added..
<pages enableSessionState="true" />

In both the default and linked .aspx pages added to the <%@ page %>
tag
enablesessionstate="True"
(in this case I am adding to the .aspx file located in the compiled
application. Not sure I can do that)

I've found references on the web to adding
System.Web.HttpContext.Current.Session or
system.web.httpsessionstate to the code behind but I cannot figure out
how to use these calls.

Thanks for any help.

John
jo***@qdgi.com
Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.