URL路由会话问题 [英] URL Routing Session Problem

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

问题描述



我正在使用URL路由来显示用户个人资料.我正在使用母版页和子页.配置文件页面是子页面,母版页面具有登录状态控件.当我通过母版页面本身中的模式弹出窗口登录(例如,用户x)时,我可以顺畅地浏览站点并到达路由页面.当我使用登录状态从路由页面注销时,我会根据需要重定向到我的主页,因为我的登录状态也已注销.如果我现在使用另一个用户名从y从该主页登录,我将成功登录.

问题是,当我再次使用路由到达路由页面时,我仍然保持先前的用户x登录.当我进入首页时,我看到用户y已登录.因此,我有两个会话在工作;一个在路由页面中,另一个在整个网站中.

如果有人可以指出会话问题,我将有义务. :)

登录/注销链接按钮在母版页中.因此,当两个用户根据我的问题登录时:一个在路由页面中,另一个在其他页面中;如果我单击注销,则路由页面中的用户将保持登录状态,而另一个登录用户将被注销.

因此,会话卡在路由页面本身中.因此,问题与路由页面上的URL路由有关.该页面用于维护其自己的会话,并且不允许我注销用户.
任何解决方案???

Hi,

I am using URL Routing for display user profiles. I am using master page and child pages. The profile page is a child page and the master page has a login status control. When I login (say user x) through the modal popup which is in the master page itself, i can browse the site with smoothly and reach the routed page. When I log out from the routed page using the login status i get redirected to my home page as required as my login status also is logged out. If i login from this homepage now with another username say y, i get logged in successfully.

The problem is that when I again use the routed to get to the routed page, I get the previous user x still logged in. When i come to homepage I see user y logged in. So I have two sessions working; one in the routed page, and other in the whole of the website.

I will be obliged if anyone can point out the session problem. :)

The the login/logout link button is in the master page. So when two users are logged in according to my problem: one in routed page, other in the other pages; If i click logout, the user in the routed page remains logged in whereas the other logged in user is logged out.

So the session is stucked in the routed page itself. Thus the problem is related to URL routing at the routed page. This page is kind of maintaining its own session and is not allowing me to log out the user.
Any Solution???

推荐答案

我相信您必须清除站点上的会话缓存.否则,会话将保持活动状态,直到您真正关闭启动该特定会话的浏览器实例(甚至可能是所有现有的浏览器实例)为止.
I believe you have to clear the session cache on the site. Otherwise, sessions remain active until you actually shut down the browser instance that started that particular session (or maybe even all existing browser instances).


这篇关于URL路由会话问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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