ASP.NET应用程序的会话问题 [英] The session problem for ASP.NET application

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

问题描述

大家好,



我在我的应用程序中使用会话变量。在服务器上部署应用程序后,如果2个客户端计算机使用相同的应用程序页面,示例列表页面,其中包含网格和一些下拉列表以用于筛选条件。因此,如果我从一台客户端计算机上的下拉列表中选择XYZ,那么我将在网格中获取XYZ的数据。同时在第二台客户端计算机上,我访问同一页面并选择ABC的数据。如果我从列表页面转到详细信息页面并从详细信息页面返回到列表页面,那么我在客户端计算机上获得XYZ过滤器或ABC过滤器的数据。如何在客户特定的会话中解决这个问题。



有人可以帮忙???



谢谢你提前



Yogesh

Hi all,

I am using session variable in my application.After deploying the application on server if 2 client machine use the same pages of the application,for example Listing page which is having grid and some drop down for filter criteria. so if I select XYZ from drop down on one client machine then I got data for XYZ in grid. Simultaneously on second client machine I access the same page and and select the data for ABC. If I go from listing page to details page and came back from details page to listing page then either I got data for XYZ filter or ABC filter on both the client machine. How to solve this as session in client specific.

Can anybody help???

Thanks In advance

Yogesh

推荐答案

听起来你使用的是静态变量而不是Session变量。静态变量在所有用户之间共享。如果您使用的是VB.net,则静态变量称为共享变量。
It sounds like you are using static variables rather than Session variables. Static variables are shared among all users. If you're using VB.net then static variables are called shared variables.


这篇关于ASP.NET应用程序的会话问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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