asp.net mvc session and custom MembershipProvider

Posted by niao on Stack Overflow See other posts from Stack Overflow or by niao
Published on 2010-04-22T21:44:55Z Indexed on 2010/04/22 22:03 UTC
Read the original article Hit count: 462

Greetings, in my ASP.NET MVC application I've created a custom MembershipProvider. It works fine, however when user is successfully logged, I would like to create an Operator object and make it possible to access this object on every controller and view. I was thinking about session to do this but when session expires this object is null but user that had been logged using MembershipProvider is still logged in. Is there any way I can store my Operator object in MembershipProvider and access it on every controller and view I need?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about membershipprovider