如何从我网站的URL中隐藏令牌并将其存储在cookie中 [英] how to hide the token from the URL in my website and store it in cookies

查看:366
本文介绍了如何从我网站的URL中隐藏令牌并将其存储在cookie中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我的用户使用FB帐户进行连接时,我不希望OAuth令牌显示在回调网址中,如下所示: http://www.mysite.com/liker.php?accesstoken=5cf2199d5949568a264561f9b4b2d2b8AQBQwuHD6F6ugE9vVUiB_4fHH4C3LGMUHYFyo51TQ9QrIHUavO9XxySUbUvunBECejf47gomxUS4gb6RdCFh4vS3BLy9UPY7 [ ^ ]





我想隐藏这些变量,所以它可以只是http://mysite.com/liker.php任何人都有任何想法?请让我知道,紧急

When my users use FB account to Connect I don't want the OAuth token show up in the callback URL like so:http://www.mysite.com/liker.php?accesstoken=5cf2199d5949568a264561f9b4b2d2b8AQBQwuHD6F6ugE9vVUiB_4fHH4C3LGMUHYFyo51TQ9QrIHUavO9XxySUbUvunBECejf47gomxUS4gb6RdCFh4vS3BLy9UPY7[^]



I would like to hide those variables so it can just be http://mysite.com/liker.php Anybody have any ideas? Please let me know, URGENT

推荐答案

检查下面提到的两篇文章,你将从网址中删除令牌他们。

第1条 [< a href =http://www.nczonline.net/blog/2009/05/05/http-cookies-explained/target =_ blanktitle =New Window> ^ ]和第2条 [ ^ ]
Check this below mentioned two articles, you will remove the token from the url with help of them.
Article 1[^] and Article 2[^]


这篇关于如何从我网站的URL中隐藏令牌并将其存储在cookie中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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