ASP.Net Store User Data in Auth Cookie

后端 未结 6 572
情歌与酒
情歌与酒 2020-12-13 19:31

I want to store some data like the user nickname and user ID (table primary key) in the user data section of the auth cookie. The reason I\'m doing this is to retain this da

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-13 19:48

    If you've already got a user table with profile information in it, why don't you hook into it with a custom profile provider.

    If you want another example of how to implement something like this, you could take a look at the SQL Table Profile Provider

提交回复
热议问题