I\'m new in mvc 4 and can\'t understand exactly how simple membership worked. After all configuration I put this code to AccountController to see how it works and is it work at
Login does not do what you think it does. It does not immediately set the current user, instead it sets a cookie on the users web browser, and on the next page refresh, asp.net will recognize that cookie and give them an authenticated request.
This is not specific to simple membership, that's how all authentication works in asp.net. Once authenticated, the page has to be refreshed for a login to be recognized.