[英]Setting a Forms Authentication cookie from a .NET client application
We currently have a .NET 2.0 web app that uses forms authentication via cookies. 我们目前有一个.NET 2.0 Web应用程序,该应用程序通过Cookie使用表单身份验证。 Associated with this web app is an old VB6 client application that has its own login system. 与该Web应用程序关联的是一个旧的VB6客户端应用程序,它具有自己的登录系统。
Currently, the users have to login to the VB6 app, and then when they click on a link, need to authenticate themselves again with the .NET forms authentication system. 当前,用户必须登录到VB6应用程序,然后单击链接时,需要使用.NET表单身份验证系统再次进行身份验证。
I'm wondering if it's possible to create a client side .NET application, give it the username and password, and set the forms authentication cookie (without the browser being opened). 我想知道是否可以创建客户端.NET应用程序,为其提供用户名和密码,以及设置表单身份验证cookie(无需打开浏览器)。
Is that possible?? 那可能吗??
You can use Application Services . 您可以使用应用程序服务 。 The were designed to accomplish this specifically. 专为实现此目的而设计。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.