简体   繁体   English

登录脚本在后台加载重定向站点

[英]Login script that loads the redirect site in the background

I assume this is a pure javascript problem but since I am unsure I add the php tag onto it as well. 我认为这是一个纯JavaScript问题,但是由于我不确定,我也将php标签添加到了它。

I wonder how you create a login script which is similar to facebooks login script, meaning that the site that actually logs you in is hidden and never displayed to the end user. 我不知道您如何创建类似于facebook登录脚本的登录脚本,这意味着实际登录您的网站是隐藏的,永远不会显示给最终用户。

I want to make the redirect part hidden to the end user in this model, it should still, however, be processed by the end user's browser: 我想使重定向部分在此模型中对最终用户隐藏,但是仍应由最终用户的浏览器处理:

login site -> redirect -> logged in page 登录站点->重定向->登录页面

I would this without problems with reposts and repost questions from the browser. 我这样做不会出现问题,也不会出现来自浏览器的问题。

TL;DR How do you create a login script similar to facebook's? TL; DR如何创建类似于Facebook的登录脚本?

Thanks in advance 提前致谢

Try XMLHtpRequest open method 尝试XMLHtpRequest打开方法

http://w3.org/TR/XMLHttpRequest/#the-open-method http://w3.org/TR/XMLHttpRequest/#the-open-method

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM