473,386 Members | 1,867 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,386 software developers and data experts.

abandon specific session

Hello,

I'm working on an approach to systematically and automatically log users on
and off an app that precludes users from sharing usernames and passwords.

I have most of that working except for how to deal with a user that simply
or mistakenly closes the browser window (does not explicitly log off). As
it stands right now, they will have to wait at most 20 minutes for their
original session to time out (which completes the proper log out in the
session_end event in the global.asax) before they can log back on and
although I don't really have a problem with that wait (which I could shorten
I suppose), I'm sure it's going to po a few users.

When that user tries to log back on I'd like to check to see if their
previous session has timed out and if not, abandon it so they can log on
without waiting for the timeout. I've saved the sessionid so I guess what
I'd need is something like a session.abandon that allows me to specify the
sessionid.

Any thoughts, alternatives?

Thanks,

Mike
Feb 14 '07 #1
2 2547
Any thoughts, alternatives?

Don't try and retict multiple logons. The reason you never see sites do it
is due to the issues you are encountering.

ISTR seeing a technique where, on the starting of the session, you see if a
SESSIONID cookie exists and if it does you assume they shut their browser.
It's a vague memory, google will probably find the code.
Feb 14 '07 #2
If the previous session timed out you don't have to abandon this session.
You could also keep track yourself of the last use of a particular session
if this is what you meant and then remove it from your onw list if you
consider it has timedout.

You don't have control accross sessions (unless using a SQL Server provider
for example that likely does something similar to what is described above).

You could also track the IP/Port and consider this is the same user. It
would perhaps avoid to have to wait too long to reconnect...
"mharness" <bo***@hotmail.coma écrit dans le message de news:
ht******************************@comcast.com...
Hello,

I'm working on an approach to systematically and automatically log users
on and off an app that precludes users from sharing usernames and
passwords.

I have most of that working except for how to deal with a user that simply
or mistakenly closes the browser window (does not explicitly log off). As
it stands right now, they will have to wait at most 20 minutes for their
original session to time out (which completes the proper log out in the
session_end event in the global.asax) before they can log back on and
although I don't really have a problem with that wait (which I could
shorten I suppose), I'm sure it's going to po a few users.

When that user tries to log back on I'd like to check to see if their
previous session has timed out and if not, abandon it so they can log on
without waiting for the timeout. I've saved the sessionid so I guess what
I'd need is something like a session.abandon that allows me to specify the
sessionid.

Any thoughts, alternatives?

Thanks,

Mike

Feb 14 '07 #3

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...
0
by: Bill Borg | last post by:
Hello all, Not sure I can describe this adequately, but I am creating an endless loop when an authenticated user signs out. When the user signs out, I want to remove authentication, abandon...
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...
0
by: 'Mani | last post by:
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...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
marktang
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,...
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...

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.