Search code examples
c#asp.net.netsessionc1-cms

Session does not work in Composite C1


I started integrating Composite C1 with an existing ASP.Net Website Project.

Putting some usercontrols which use SessionState into a MasterPage resulted in an error, saying that SessionState was not enabled.

I tried to set

<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" enableSessionState="true">

in the web.config then and add

<sessionState mode="InProc" cookieless="AutoDetect" timeout="30" />

but no success still.

Why does Session State not work and how can I enable it for my Composite C1 Project?


Solution

  • Masterpages are not a core part of C1 and im not sure how good they are at updating the package on their server. You should try getting the newest version from http://compositec1contrib.codeplex.com/SourceControl/list/changesets.

    This particular issue was fixed in the checkin from july 6th so thats pretty long time ago, but i don't know how often Composite is updating their package server http://compositec1contrib.codeplex.com/SourceControl/changeset/changes/3f14f6e15ce4