在两个网站之间传递UserID [英] Passing UserID between two websites

查看:68
本文介绍了在两个网站之间传递UserID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有两个网站,一个在ASP.Net中,另一个在PHP中.

我希望,如果某人登录一个网站,那么他会获得第二个网站的链接.当他/她单击该链接时,他的用户ID将传递到第二个站点.

请帮助...

Hi,
I have two websites one in ASP.Net and other in PHP.

I want that if a person logged in on one website then he gets a link for second website. When he/she click on that link his userID is passed to second site.

Please help...

推荐答案

您可以将一些QueryString(可以加密)传递给第二个网站
You may pass some QueryString (may be encrypted) to the second website


嗯,因为假设其中一个被认为已登录,则加密的查询字符串可能会有所帮助.

但是,您每次都需要形成新的查询字符串,这样没人能破解它.使用某种加密方法.
Well, since one is suppose to be considered as logged into other, an encrypted query string might help.

But you need to form new query string every time such that no one can crack it. Use some encryption method.


这篇关于在两个网站之间传递UserID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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