跨多个域维护会话变量的最佳方法
我正在构建一个类似工具栏的伞系统,将四个不同的站点链接在一起,并且需要从任何站点登录一次,然后允许访问所有其他站点。我还需要在会话之间维护大量数据。最好的方法是什么?我已经想知道是否将会话存储在数据库中并在移动到新站点时进行检索,但我想知道这是否是最好的技术。
I am building a tool-bar like umbrella system to link four different sites together and need to log in once from any of the sites but then allow access to all the other sites. There is also a lot of data I need to maintain between sessions. What would be the best approach for this? I have already wondered about just storing session in the db and retrieving upon moving to a new site but am wondering if this is the best technique.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
绝对有效的方法,但如果会话变量发生更改,那么您必须找到一个刷新并收集会话变量的脚本
Absolutely effective method but if session variable is changed then you have to find a script which gets refresh and collects the session variable
嗯,这是一种非常有效的技术,这是肯定的。维护可从每个站点访问的中央数据库很容易。将来,如果他们有任何关系,他们可能会分享更多信息,这对我来说是另一个+。
请参阅此关于该主题的讨论。
Well its a very effectiv technique thats for sure. Its easy to maintain a central database accessible from everysites. And down the road they might share more information if they are at all related so thats another + to me.
See this discussion here about exactly that subject.