Author: fys26 | Posted on: 6/19/2009 9:49:28 AM | Views : 353

 Hi, need your help.
Our website has some public and private pages, when  the user signs in, some of the public pages show user-specific information (we use the  Page.User.Identity.IsAuthenticated, if true we show the info ).
 
Now we want to launch a beta version by invitation only, so I changed my web.config to protect the whole site. we added a new form  where the users enter the code and gain access to the site. t we want the current logic to apply once they are in, we want them to create an account, sign in and see the user-specific areas in the public pages

It doesn't work

The problem is that since we use Page.User.Identity.IsAuthenticated as soon as the invitation code is validated, the application shows in the public pages some information that the user is not suppose to see but it makes sense as the user is authenticated.

 How can I protect my site to just let the beta users to see the ...

Go to the complete details ...