I Need to forcefully Abandon ASP.NET sessions from an external Windows
application or another site. Please help how can i implement this 13 1838
"amit_mitra " <am*******@disc ussions.microso ft.comwrote in message
news:DB******** *************** ***********@mic rosoft.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*******@disc ussions.microso ft.comwrote in message
news:DB******** *************** ***********@mic rosoft.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*******@disc ussions.microso ft.comwrote in message
news:B8******** *************** ***********@mic rosoft.com...
>"amit_mitra " <am*******@disc ussions.microso ft.comwrote in message news:DB******* *************** ************@mi crosoft.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
Hello Mark Rae [MVP],
I suppose he need to use standard SQL job "State_Job_Dele teExpiredSessio ns"
clear the sessions
but he need either to create the similiar SP to clear ALL session or mark
then exprired and call this JOB
---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
M"amit_mitra " <am*******@disc ussions.microso ft.comwrote in message
Mnews:B8******* *************** ************@mi crosoft.com...
M>
>>"amit_mitra " <am*******@disc ussions.microso ft.comwrote in message news:DB****** *************** *************@m icrosoft.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).
MHmm - that's a valid point - I hadn't considered anything other than
Minproc sessions.
M>
MIf you use SQL Server to manage sessions, then in theory you could
Mdelete the individual session records from the database. I have never
Mtried this, and am not sure if this would leave your web app in an
Munstable state...
M>
"Michael Nemtsev [MVP]" <ne*****@msn.co mwrote in message
news:3d******** *************** ***@msnews.micr osoft.com...
I suppose he needs to use standard SQL job
"State_Job_Dele teExpiredSessio ns" clear the sessions
Ah no, and that's the problem...
He doesn't want to clear expired sessions - he wants to forcibly terminate
current sessions...
--
Mark Rae
ASP.NET MVP http://www.markrae.net
In addition to this My site works with MYSQL and Oracle. I amm looking for a
solution with ASP.NET State services.
If we can find out the API exposed by this state service for updation of
session state data, I think we can find some solutions.
Amit
"Mark Rae [MVP]" wrote:
"Michael Nemtsev [MVP]" <ne*****@msn.co mwrote in message
news:3d******** *************** ***@msnews.micr osoft.com...
I suppose he needs to use standard SQL job
"State_Job_Dele teExpiredSessio ns" clear the sessions
Ah no, and that's the problem...
He doesn't want to clear expired sessions - he wants to forcibly terminate
current sessions...
--
Mark Rae
ASP.NET MVP http://www.markrae.net
Hello amit_mitra,
I suppose there is no API to terminate session outside the asp.net
---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
aIn addition to this My site works with MYSQL and Oracle. I amm
alooking for a solution with ASP.NET State services. If we can find
aout the API exposed by this state service for updation of session
astate data, I think we can find some solutions.
a>
Hi,
If both applications - web and other - can access the same database -
directly or via a WebService; you can use a basic table to store which
users' session you want to abandon and during the page loads, you can check
this table to see if you have to abandon current user's session state. And
abandon the state if the user's name is in the table and delete the row from
the table.
May sound like a workaround but looks like the most simple one.
I would also like to hear if there are some other ways to do this - not
recycling the application pool or something like that but removing the
session information for a single user.
--
All the best,
Coskun SUNALI
MVP ASP/ASP.NET http://sunali.com
"amit_mitra " <am*******@disc ussions.microso ft.comwrote in message
news:DB******** *************** ***********@mic rosoft.com...
>I Need to forcefully Abandon ASP.NET sessions from an external Windows
application or another site. Please help how can i implement this
What is your ultimate purpose? May be there are more elegant solutions to it
than killing sessions.
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net
"amit_mitra " <am*******@disc ussions.microso ft.comwrote in message
news:AA******** *************** ***********@mic rosoft.com...
In addition to this My site works with MYSQL and Oracle. I amm looking for
a
solution with ASP.NET State services.
If we can find out the API exposed by this state service for updation of
session state data, I think we can find some solutions.
Amit
"Mark Rae [MVP]" wrote:
>"Michael Nemtsev [MVP]" <ne*****@msn.co mwrote in message news:3d******* *************** ****@msnews.mic rosoft.com...
I suppose he needs to use standard SQL job
"State_Job_Dele teExpiredSessio ns" clear the sessions
Ah no, and that's the problem...
He doesn't want to clear expired sessions - he wants to forcibly terminate current sessions...
-- Mark Rae ASP.NET MVP http://www.markrae.net
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: mrbog |
last post by:
Tell me if my assertion is wrong here:
The only way to prevent session hijacking is to NEVER store
authentication information (such as name/password) in the session.
Well, to never authenticate a user from information you got from the
session. Each secure app on a site must challenge the user for name
and password, each and every time the user accesses it (not just once
and then store it in the session). If a secure app is multi-page,...
|
by: Abhilash.k.m |
last post by:
This is regarding the session management using Out of
proc session management(SQL SERVER). Among the samples
below which one is better to set the session?
1. There are 20 session variables and all of them
are being stored into session and accessed from session
and individual session object. Example: Session
= "XYZ", Session=100, Session="NAME", etc.
|
by: Chris |
last post by:
1.) I have a web app that will be primarilary used by internal (internal
network resources) users, approx. 40-50 at any one time, then there will be
external (external coming into the internal network) users approx. 5-10 at
any one time.
Which is better, store login information in Session or Application? I have
used Session (Session("name")= "abc") for ASP for years. What about ASP.NET?
I have approx. 5-7 values per user, no more than 30...
|
by: Danny W |
last post by:
Hi There!
Is it possible to use HttpModule to replace the built-in ASP.NET Session
object? I want to write a HttpModule that will handle storing and retrieving
of session values from an external database.
For example, when a page set values to Session object such as
Session("somevar")=1 then I want my HttpModule to get notified and store the
value into the external database. The same for "getting" the variable, I
want my own...
|
by: ML |
last post by:
Hi NG!
I wish to use SQLserver sessionstate mode with my ASP.NET application, since
reliability is a big issue and performance less so. However, it is hosted at
an external hosting partner who does not allow me to have the ASPstate db on
the SQL server (or to create another, for that matter). I have the one SQL
database at the server which is the foundation for the application. So my
question is:
Is there any way I can use that db for...
| |
by: Eric McVicker |
last post by:
Session state has options to be inproc, state server or sql server. Why does
Application state not allow for state server or sql server so the same
Application state could be shared between servers in a farm?
|
by: ras26 |
last post by:
I have a WebSite "App1" which has an external assembly "Lib1".
Inside this external assembly we have developed some classes that derive
from "System.Web.UI.Page". One of these pages is called "WebNotification".
In the WebSite "App1" we create an instance of "WebNotification", but when
this class tries to access some Session variables it generates the following
error:
Session state can only be used when enableSessionState is set to...
|
by: BillE |
last post by:
When a user opens a new IE browser window using File-New-Window the
integrity of an application which relies on session state is COMPLETELY
undermined. Anyone who overlooks the fact that File-New-Window creates an
instance of IE in the same process with the same SessionID as the parent
window is in big trouble. This fundamentally restricts the usefullness of
using session state management.
I probably missed it somewhere - can...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |