473,399 Members | 3,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

How to abandon different session?

Hi All,

I need to abandon a different session and want to know how to do this.
Session.Abandon() will abndon only the current session associated with
the current request. But, my necessity is different.

I have this authentication object whose sliding expiration value in the
cache is less than the session timeout value. I want to abandon the
session once the authentication object is removed from the cache. I
cannt keep both the session and sliding expiration for the object in
the cache as same, due to a different reason.

I have a callback method which will be called when the object expires
from the cache. I want to abandon the session associated with this
Authentication object also alongwith, in the callback method. But the
point is, the object can expire from the cache even when there is
no/different request is being processed. So i want to know if there is
any mechanism that i can enumerate the session objects in a collection
and abandon those objects in the callback method while the object is
expired from the cache.

Any Help?

Jul 6 '06 #1
0 1250

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: What-a-Tool | last post by:
I've got a bit of experience coding in VB.Net and VBA, but as I don't have the software to debug an ASP web application, I'm having a bit of trouble figuring out exactly how my code is...
1
by: Random | last post by:
I have an <asp:LinkButton runat="server" id="btnLogin"/> control that I use in my page header for login/logout link. Depending on the session state when the page loads, I set the .Text and...
2
by: Paul W | last post by:
Using default session handling (ie. inproc and with cookies). I have a 'logout' button that returns the user to the login screen and does a session.abandon. HOWEVER, if they then log back in...
3
by: Ricardo Q.G. | last post by:
in production environment we started to have a memory consumption problem at "asp.net wp". after a hard work we have discovered that Session.Abandon() does not reduce references to objects added to...
4
by: ad | last post by:
I use the Login controls of Asp.net 2.0 in my program. I want to logout a user by program, I try Session.Abandon() for this. But I found that the user is the same after I execute Session.Abandon()....
1
by: pulaki | last post by:
Greetings and thank you! I am passing form data to a distant server that is out of my control. The destination server (posting to) rejects all postings beyond ONE from the same session ID. I...
1
by: Ed | last post by:
I am trying out SessionState with Mode=SQLServer. I have my code run Session.Abandon, but the session entry in the table ASPStateTempSessions is still there? I was expecting that Session.Abandon...
4
by: David Thielen | last post by:
When I am in the Session_OnStart method, Is there a way to find another session based on it's SessionId? And can I then call Abandon on that other session? -- thanks - dave...
3
by: rn5a | last post by:
In a MS-Access database application, the following code resides within the *Catch* block of a *Try....Catch* block: ========================================= Try 'some code Catch ex As...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
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...
0
agi2029
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,...
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.