Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
It is working for 2010
What type of setting I need to do committable for VS 2012,13.
I have created with help of following link
XML
https://support.microsoft.com/en-us/kb/2527105
Following is my web config setting .
<pre lang="xml">&lt;configuration&gt;
  &lt;system.webServer&gt;
    &lt;validation validateIntegratedModeConfiguration=&quot;false&quot; /&gt;
  &lt;/system.webServer&gt;
    &lt;system.web&gt;
        &lt;compilation debug=&quot;true&quot; targetFramework=&quot;4.0&quot; /&gt;
      &lt;sessionState mode=&quot;SQLServer&quot; sqlConnectionString=&quot; Data Source=SOURAV-PC\OFFBEATUSER;Initial Catalog=iclamazon;User ID=sa;Password=offbeatuser&quot; allowCustomSqlDatabase=&quot;true&quot;  /&gt;
        &lt;machineKey decryptionKey=&quot;EDCDA6DF458176504BBCC720A4E29348E252E652591179E2&quot; validationKey=&quot;CC482ED6B5D3569819B3C8F07AC3FA855B2FED7F0130F55D8405597C796457A2F5162D35C69B61F257DB5EFE6BC4F6CEBDD23A4118C4519F55185CB5EB3DFE61&quot;/&gt;
        &lt;httpModules&gt;
            &lt;add name=&quot;SharedSessionModule&quot; type=&quot;CSASPNETShareSessionBetweenSubDomainsModule.SharedSessionModule, CSASPNETShareSessionBetweenSubDomainsModule, Version=1.0.0.0, Culture=neutral&quot;/&gt;
        &lt;/httpModules&gt;
    &lt;/system.web&gt;
    &lt;appSettings&gt;
        &lt;add key=&quot;ApplicationName&quot; value=&quot;MySampleWebSite&quot;/&gt;
        &lt;add key=&quot;RootDomain&quot; value=&quot;localhost&quot;/&gt;
    &lt;/appSettings&gt;
&lt;/configuration&gt;</pre>
Posted
Updated 28-Jul-15 5:45am
v2
Comments
Richard Deeming 28-Jul-15 11:52am    
Define "not working". Are you getting an error?
Sourav Monga 29-Jul-15 5:49am    
this app is working fine for vs2010. When you will run with vs2013 and set web config you will see 2012 it thorw exception for session and vs 2013 it is not thorwing exception. But session not shared
Richard Deeming 29-Jul-15 7:21am    
And are we expected to guess what the exception is?
Suvendu Shekhar Giri 28-Jul-15 15:17pm    
Format your question correctly.
Sourav Monga 29-Jul-15 5:50am    
I gave link pl download the small demo
And make web changes as above write. You will see 2010 session sharing is working fine.
If open in 2012,2013 no session sharing works.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900