开发者

Session, FormsAuthenticationTicket, store data about the user?

I'm building a web application that needs to be able to scale.

We want to store a connection string, an object that says what organization the user is working on right now and the identity of the user.

We could serialize down this and send through the userdata property in the FormsAuthenticationTicket, but that feels to not be the optimal solution, because it is 4-5 stri开发者_如何学Gongs of data that are unncessesary, but the main issue is that we are sending an encrypted connectionstring to the user which we don't want to.

So what are our options?

Can ASP.NET cache be our solution? Can we couple the expiration of the ASP.NET cache and the formsauthenticationcookie?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜