Validation of viewstate MAC failed in Safari

Posted by Midhat on Stack Overflow See other posts from Stack Overflow or by Midhat
Published on 2009-05-28T14:07:48Z Indexed on 2010/05/29 18:32 UTC
Read the original article Hit count: 183

Filed under:
|
|

Hi

I have a web app using forms authentication. When I perform the following steps

  1. Let the login cookie expire
  2. Click on a link that requires a logged in user
  3. The user is redirected to the login page
  4. Click the browser back button
  5. The user is redirected to the login page again
  6. Log in using a valid username/password

I get this exception Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

This case appears only in safari (windows and mac). The fundamental difference between safari and other browsers is that when we click the back button in step 4, safari shows the login page again, while the other browsers show the previous page the user was working on.

Please help in this regard

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about safari