在同一个域中有两个不同的会话 [英] Having two different sessions in same domain

查看:74
本文介绍了在同一个域中有两个不同的会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行foo.com.我在foo.com中有两个不同的应用程序:一个是foo.com/bar,另一个是foo.com/example.我使用会话来跟踪有关用户登录的信息,但是如果用户从foo.com/bar转到foo.com/example,则foo.com/example会看到用户从foo.com/启动的会话并使用该信息.我的问题是,如何同时为每个目录进行两个不同的会话?

I run foo.com. I have two different applications that live in foo.com: one is foo.com/bar, and the other is foo.com/example. I use sessions to track information about the user while they're logged in, but if the user goes from foo.com/bar to foo.com/example, foo.com/example sees the session the user started from foo.com/bar and uses that information. My question is, how can I have two different sessions going for each directory at the same time?

推荐答案

您还可以使用相同的会话,但是更改您要查找的变量名.

You could also use the same session but change the variable names that you look for.

对不起,这不能回答您的问题,但是提供了替代解决方案.

Sorry this doesn't answer your question but gives an alternative solution.

这篇关于在同一个域中有两个不同的会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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