开发者

i am unable to get the value of session

开发者 https://www.devze.com 2023-01-04 18:37 出处:网络
i am setting the session value but when i try to get it on other page its null i am storing session in sql

i am setting the session value but when i try to get it on other page its null

i am storing session in sql

previously it was wrking fine and still some session values are wrking ok

but开发者_开发技巧 when i add a new its null while getting it


Just a small hint, but maybe it is helpful:

You've said that you store your session-object in Sql-Server - is it marked as Serializable? As this is necessary when Sessions are not inside Memory but StateServer or DqlServer?

Example:

    [Serializable]
    public class Account
    {
         ...
    }
0

精彩评论

暂无评论...
验证码 换一张
取 消