用户控制内的会话 [英] Session inside user control

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

问题描述

在Webform用户控件中设置会话并再次重定向aspx页面时,会话将被清除.

有时不会更改.

When setting the session inside the webform usercontrol and again redirect the aspx page the session getting cleared.

And some times not getting changed.

推荐答案

不,在用户控件内没有会话,该用户存在于所有页面和所有控件.因此,您需要修复您的代码.我们无济于事,因为您还没有发布任何内容.
No, there is no session ''inside a user control'', the session exists for that user, across all pages and all controls. So, you need to fix your code. we can''t help because you''ve not posted any.


这不是预期的行为.检查您的代码.使用DEBUGGER.
会话将跨页面保留给用户.

如果无法获取,请发布一些代码.
This is not the expected behavior. Check your code. Use DEBUGGER.
Sessions are retained across pages for the user.

If you are unable to get it, post some code.


这篇关于用户控制内的会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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