Sharing login-system between classic ASP and ASP.Net

前端 未结 5 1420
臣服心动
臣服心动 2020-12-29 11:02

A client uses classic ASP to log in to their web based backoffice.

I have written a new ASP.Net app to be included in the backoffice, and I need to utilize the alrea

5条回答
  •  感动是毒
    2020-12-29 11:42

    How does the classic ASP system maintain login state? "Piggy-backing" off that would be your best bet, by far.

    All classic ASP systems I've worked on have used cookies for tracking authentication information, so just read those and compare against the database that you can access.


    As the information is stored in a Classic ASP session, could you add a "redirect page" to the classic ASP side of things that is the "entrance" to the new module, and cause this to write the useful data out as cookies, or trigger a POST to your start page? By using cookies or a POST request, you minimise your worry about having the url "hijacked" allowing someone to get into the ASP.net site without username/password.

提交回复
热议问题