Session: "data cannot be verified"

Source: Internet
Author: User

1 session Validity Period

Session in IE:
Valid window products include
1. The session object is valid only in the window where the session object is created.
2. Create a new connection window in the session object creation window.

Invalid Windows include
1. Directly start the IE browser window
2. It is not a new link window in the session object creation window.

2 solution 1

This is because the session status (including session and viewstate) does not match the data registered on the server. Most of the reason is because of your development.. NET Framework and installed on the application server.. NET Framework Version (you can view C:/Windows/Microsoft.. Net/framework/v1.1.4322/aspnet_isapi.net.
If it is difficult to update the server, you can cancel Mac verification in the top page command by <% @ page enableviewstatemac = "false">.

3 from Microsoft documentation http://support.microsoft.com/default.aspx on viewstate? SCID = KB; ZH-CN; 832183

View status message authenticationCode(Mac) is an identity authentication mark (also knownCheck Value), This code is created when the authentication scheme and key are applied to the message at the same time. Mac performs computation and verification by using the same key. Therefore, Mac can only be verified by the specified receiver. Multiple encryption technologies andAlgorithmTo create a Mac, such as the security hash algorithm (SHA), the message digest 5 (MD5) algorithm, or the Data Encryption Standard (DES) algorithm.

The view status Mac function prevents customers from sending requests containing malicious view status data. By default, the view status Mac function usesEnableviewstatemac = "true"Flag enabled.

To determine whether the problem is related to Mac, the simplest way is to disable this function. For this reasonEnable viewstatemacFlag is setFalse. If you no longer encounter a view status error, the problem is related to Mac.

Installation and repairProgramEarlier than 323744, Microsoft. NET Framework 1.0 used Mac in different ways. The hotfix (hotfix 832183) described in this article includes hotfix 323744. If hotfix 323744 is not installed on all other computers in the environment (either separately or together with hotfix 832183 ), if no repair program 323744 is installed, a view status data error occurs.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.