如何导航到在VB.NET中使用地址ID的外部站点 [英] How to navigate to external Site which is using session ID in address in VB.NET

查看:50
本文介绍了如何导航到在VB.NET中使用地址ID的外部站点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是我无法从一个asp.net页面导航到外部链接。

我有一个页面有一个超链接

My problem is that I am unable to navigate from one asp.net page to external links.
I have a page having a hyperlink

<a href="http://mysite.example.in/Default.aspx?uid=<%=uid %>&pwd=<%=Rpwd %>" target="_blank"  önclick="javascript:resettime()">Click to Go</a>





将用户ID和密码传递给该页面mysite.example.in

但我的问题是该网站使用会话和cookie。

因此,每次登录时,该特定

网站的地址都嵌入了会话ID,例如



am passing the user ID and password to that page mysite.example.in
but my problem is that that site uses session and cookies.
Due to which with each login the address of that particular
site is embedded with a session ID like

mysite.example.in/(S(4ncqq1rvo4jzxz55m4bmk155))/Default.aspx



它覆盖了我在超链接中传递的地址。



需要的是当用户点击超链接时,他们应该直接登录

该网站通过超链接传递用户登录凭证。



任何想法如何解决这个问题。


which is overriding the address what I am passing in Hyperlink.

The need is when user clicks on the hyperlink they should directly get login to
that site with the user login credentials passed through the hyperlink.

Any Ideas how to solve this Issue.

推荐答案

这两个站点需要共享一个数据存储,并有一个机制让你可以解决这个问题您需要传递的ID才能通过URL登录同一用户。如果可以的话,你应该使用GUID并将其删除,这样它只能工作一次,或者它是一个主要的安全漏洞。
The two sites will need to share a data store, and have a mechanism so you can work out the session id that you need to pass to log in the same user via the URL. You should use a GUID if you can and erase it so it only works once, or it''s a major security hole.


这篇关于如何导航到在VB.NET中使用地址ID的外部站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆