Yesterday, the leaders said they wanted to integrate the new system with a previous system and implement Single-point logon. The old system uses ASP, but now Asp.net. I don't want to make any changes to the old system. The initial idea is to embed the username and password of the old system into the user table of the new system and log on to the new system logon interface, if the user is an old system user, submit the login page of the old system for a background login. Now the key lies in the Asp.net used by the new system. How to jump to the ASP page for authentication to ensure smooth session settings.
Some methods have been found on the Internet. This method is used because WebClient is used to submit pages. However, this method is suitable for submitting Asp.net pages in Asp.net to obtain the returned html CodeFor system switchover, some problems will change the running directory of the old system (the two systems are under the same server ). For details, see Article: Use WebClient to automatically enter and submit an ASP. NET page form. However, there is a problem: if there is a Chinese character in poststring, it cannot be submitted, it may be the encoding problem, and the solution is not found at all.
Later, I found another method to use the intermediate page for redirection: ASP and ASP. NET shared session solution seems to be more suitable for my current situation. But no tests.
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