且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Windows登录必须自动登录我的网站

更新时间:2023-12-04 10:39:22

由于没有输入凭据,您想对Web应用程序请求进行身份验证,所以唯一的方法是

1)您只有
Since wihtout entereing credentials you want to authenticate the webapplication request, the only way is

1) You have only the
Request.LogonUserIdentity.Name

来标识用户,因此

2)从Windows应用程序对用户进行身份验证时,一旦身份验证成功,则将相应的用户名和用户的

to identify the user ,so

2) When you are authenticating the user from windows application , once the authentication is successful then store the corresponding username and

Request.LogonUserIdentity.Name 

存储在db中(也可以使用Access || xml)

3)然后,一旦收到对Web应用程序的请求,您将检查上述数据库中是否有

of the user in a db (Access || xml can also be used)

3) Then once you get a request for the web application ,you will check if

Request.LogonUserIdentity.Name 

可用.


在登录成功后尝试此操作

System.Diagnostics.Process.Start(< write url =" here =">);
try this on login success

System.Diagnostics.Process.Start(<write url="" here="">);