If you are storing session state in memory.. then you will have to add
following in web.config

<sessionState mode="InProc" cookieless ="false" timeout="60"/>.. and
comment/remove  the default mode of SqlServer.






On Wed, Nov 4, 2009 at 12:54 PM, Daniel W. Brown
<dan...@danielbrown.id.au>wrote:

> KB Article also: http://support.microsoft.com/kb/837376
>
>
>
>
>
>
>
> *From:* ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] *On
> Behalf Of *Daniel W. Brown
> *Sent:* Wednesday, 4 November 2009 10:23 AM
> *To:* ozMOSS
> *Subject:* RE: Session state can only be used when enableSessionState is
> set to true ...
>
>
>
> If you add “EnableSessionState="true” “ to your  <%@ Page language="c#" 
> Codebehind=" ... %> it should enable it JUST for that page, Alternatively, 
> you may want to enable it in the web.config
>
>
>
>
>
>
>
> *From:* ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] *On
> Behalf Of *ken zheng
> *Sent:* Wednesday, 4 November 2009 10:19 AM
> *To:* ozmoss@ozmoss.com
> *Subject:* Session state can only be used when enableSessionState is set
> to true ...
>
>
>
> Hi Guys:
>
>    I believe this could be a old topic, but just like to know how to solve
> the problem when I use Session in my custom page? I can use ViewState as
> workaround and I can use session in my webpart without error. All session
> state has been enabled in web.config
>
> The full error is:
>
> *Session state can only be used when enableSessionState is set to true,
> either in a configuration file or in the Page directive. Please also make
> sure that System.Web.SessionStateModule or a custom session state module is
> included in the <configuration>\<system.web>\<httpModules> section in the
> application configuration.*
>
> Thanks
>
> Ken
>
> _______________________________________________
> ozmoss mailing list
> ozmoss@ozmoss.com
> http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
>
>
_______________________________________________
ozmoss mailing list
ozmoss@ozmoss.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss

Reply via email to