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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -