facebook - Session lost in Safari -
we have facebook application. project developted mvc 3. , use data transfer session. session null when changed page. solution add code @ out project.
in global.asax add this;
protected void application_beginrequest(object sender, eventargs e) { httpcontext.current.response.addheader("p3p", "policyref=\"/w3c/p3p.xml\", cp=\"noi dsp cor nid cur adm dev our bus\""); httpcontext.current.response.addheader("p3p", "policyref=\"/w3c/p3p.xml\", cp=\"honk\""); httpcontext.current.response.addheader("p3p", "cp=\"cao psa our\""); }
then add layout.cshtml code;
@{ httpcontext.current.response.addheader("p3p", "cp=\"idc dsp cor adm devi taii psa psd ivai ivdi coni our ind cnt\""); }
finally add web.config ;
<system.web> <sessionstate mode="inproc" cookieless="true" timeout="20" /> ... </system.web>
but can't have solution problem.
Comments
Post a Comment