外部应用程序的ASP.NET会话管理 [英] ASP.NET Session management from External Application

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

问题描述

我需要从外部Windows

应用程序或其他站点强行放弃ASP.NET会话。请帮助我如何实现这个

解决方案

" amit_mitra" < am ******* @ discuss.microsoft.com写信息

新闻:DB ********************* ************* @ microsof t.com ...


我需要从外部Windows强行放弃ASP.NET会话

申请或其他网站。



我不相信这可以用于个人会话。


您可以通过强制您的网络放弃所有会话应用程序回收。

有几种方法可以做到这一点,例如:打开并保存其web.config ...

-

Mark Rae

ASP.NET MVP
http://www.markrae.net


你好Mark


我完全赞同你的陈述。但是根据我最近的发现,我知道ASP.NET可以使用状态服务或SQLServer在不同的
进程中维护会话状态。


如果网站可以与该服务进行通信以更新会话

数据,为什么我们不能使用一些外部应用程序这样做(包括兑现

会议)。


可能是我以错误的方式坚持下去。请纠正我。


问候,Amit

Mark Rae [MVP]"写道:


" amit_mitra" < am ******* @ discuss.microsoft.com写信息

新闻:DB ********************* ************* @ microsof t.com ...


我需要从外部Windows强行放弃ASP.NET会话

申请或其他网站。



我不相信这可以用于个人会话。


您可以通过强制网络放弃所有会话应用程序回收。

有几种方法可以做到这一点,例如:通过打开并保存其web.config ...


-

Mark Rae

ASP.NET MVP http://www.markrae.net


" amit_mitra" < am ******* @ discussion.microsoft.com写信息

新闻:B8 ********************* ************* @ microsof t.com ...


>" amit_mitra" ; < am ******* @ discuss.microsoft.com写信息
新闻:DB ************************* ********* @ microso ft.com ...


我需要从外部Windows强行放弃ASP.NET会话

申请或其他网站。


我不相信这可以用于个别会话。

您可以通过强制您的网络应用程序回收来放弃所有会话。
有几种方法可以做到这一点,例如:打开并保存其web.config ...



我完全同意你的陈述。但是根据我最近的发现,我知道ASP.NET可以使用状态服务或SQLServer在不同的
进程中维护会话状态。


如果网站可以与该服务进行通信以更新会话

数据,为什么我们不能使用一些外部应用程序这样做(包括放弃



会话)。



嗯 - 这是有效的一点 - 除了inproc

会话之外,我没有考虑任何其他事项。


如果您使用SQL Server来管理会话,那么从理论上讲,您可以从数据库中删除单个会话记录

。我从未尝试过这个,

我不确定这是否会让你的网络应用程序处于不稳定的状态...

-

Mark Rae

ASP.NET MVP
http:// www。 markrae.net


I Need to forcefully Abandon ASP.NET sessions from an external Windows
application or another site. Please help how can i implement this

解决方案

"amit_mitra" <am*******@discussions.microsoft.comwrote in message
news:DB**********************************@microsof t.com...

I need to forcefully abandon ASP.NET sessions from an external Windows
application or another site.

I don''t believe this is possible for individual sessions.

You could abandon all sessions by forcing your web app to recycle. There are
several ways to do this, e.g. by opening and saving its web.config...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net


Hi Mark

I Totally aggreee with your statement. But with my recent findings I
came to know that ASP.NET can maintain the session states in a defferent
process using a state service or to a SQLServer.

If the website can communicate to that service for updating the sessions
data , why cant we ,using some external apps do that (including abonding the
sessions).

May be I am persuing it in the wrong way. Please correct me .

Regards, Amit
"Mark Rae [MVP]" wrote:

"amit_mitra" <am*******@discussions.microsoft.comwrote in message
news:DB**********************************@microsof t.com...

I need to forcefully abandon ASP.NET sessions from an external Windows
application or another site.


I don''t believe this is possible for individual sessions.

You could abandon all sessions by forcing your web app to recycle. There are
several ways to do this, e.g. by opening and saving its web.config...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net


"amit_mitra" <am*******@discussions.microsoft.comwrote in message
news:B8**********************************@microsof t.com...

>"amit_mitra" <am*******@discussions.microsoft.comwrote in message
news:DB**********************************@microso ft.com...

I need to forcefully abandon ASP.NET sessions from an external Windows
application or another site.


I don''t believe this is possible for individual sessions.

You could abandon all sessions by forcing your web app to recycle. There
are
several ways to do this, e.g. by opening and saving its web.config...


I Totally agree with your statement. But with my recent findings I
came to know that ASP.NET can maintain the session states in a different
process using a state service or to a SQLServer.

If the website can communicate to that service for updating the sessions
data , why cant we ,using some external apps do that (including abandoning
the
sessions).

Hmm - that''s a valid point - I hadn''t considered anything other than inproc
sessions.

If you use SQL Server to manage sessions, then in theory you could delete
the individual session records from the database. I have never tried this,
and am not sure if this would leave your web app in an unstable state...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net


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

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