WebPages Global variables RRS feed

  • Question

  • Can someone tell me the WebPages(Razor) equivalent of the PHP global variable $_SESSION("{variablename}") = {value}

    On my development machine I am using AppState("{variablename}") = {value} and it works perfectly well

    However I read somewhere that when I publish the site to an ISP server then AppState may not be conserved if the server splits the session over several CPUs.

    Anyone got any ideas on this?



    Tuesday, June 10, 2014 7:19 PM


  • Hi,

    It seems to be asp.net issue. So I suggest that you can post it to asp.net forum where you can get better answers.


    HOpe it can help you.

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Pengzhen Song Tuesday, June 17, 2014 9:46 AM
    Wednesday, June 11, 2014 6:00 AM