What is the best practice for implementing a Logoff feature so that the
user's session is terminated and session state memory is released?
Thanks
TR 6 5060
Session.Abandon ();
and it can help to avoid confusion by closing the browser window as well.
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://SteveOrr.net
"TR" <tr@anonymous.b iz> wrote in message
news:e$******** ******@TK2MSFTN GP12.phx.gbl... What is the best practice for implementing a Logoff feature so that the user's session is terminated and session state memory is released? Thanks TR
if its signing out of forms, create a link to a page that have this
code....
Sub Page_Load
FormsAuthentica tion.SignOut()
End Sub
...and youre ready to go.
*---------------------------------*
Posted at: http://www.GroupSrv.com
*---------------------------------*
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
---------------------------------------------------------- http://www.usenet.com
Thanks. Seems almost too easy :-) Garbage collector handles cleanup of
session variables?
TR
"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message
news:eq******** ******@TK2MSFTN GP12.phx.gbl... Session.Abandon (); and it can help to avoid confusion by closing the browser window as well.
-- I hope this helps, Steve C. Orr, MCSD, MVP http://SteveOrr.net
"TR" <tr@anonymous.b iz> wrote in message news:e$******** ******@TK2MSFTN GP12.phx.gbl... What is the best practice for implementing a Logoff feature so that the user's session is terminated and session state memory is released? Thanks TR
Thanks. We're not using Forms Auth at the moment, but would .SignOut() be
called instead of Session.Abandon ()? The docs read "[The SignOut method]
removes either durable or session cookies." Is that synonymous with
terminating the session?
TR
"bmongtangc o" <bm*********@ya hoo-dot-com.no-spam.invalid> wrote in message
news:42******** @127.0.0.1... if its signing out of forms, create a link to a page that have this code....
Sub Page_Load FormsAuthentica tion.SignOut() End Sub
..and youre ready to go. *---------------------------------* Posted at: http://www.GroupSrv.com *---------------------------------*
Posted Via Usenet.com Premium Usenet Newsgroup Services ---------------------------------------------------------- ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY ** ---------------------------------------------------------- http://www.usenet.com
Yes.
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://SteveOrr.net
"TR" <tr@anonymous.b iz> wrote in message
news:O2******** ******@TK2MSFTN GP14.phx.gbl... Thanks. Seems almost too easy :-) Garbage collector handles cleanup of session variables? TR
>> would .SignOut() be called instead of Session.Abandon ()?
No, use Session.Abandon also.
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://SteveOrr.net This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Arun Goel |
last post by:
Hi all,
I have set up rmiregistry.exe to run as service on Windows 2000 Server
.. I set it up using "srvany.exe".
It is running fine, but when I logoff, it stops.I did a lot of
research but I am not able to find out what is the problem. I have
"Interact with active desktop" unchecked.
If I login after logoff, then rmiregistry is not responding though it
shows the rmiregistry as "started" in "controlPanel->Admin->services".
If I restart...
|
by: Jonathan Heath |
last post by:
Hi all,
I have created an ASP script that enters data into an Access Database.
My problem is that I'd like this script to run when the computer is shutdown
or the user logs off.
I think this would be simple enough if the ASP didn't have any user input,
but it does.
|
by: puppet_sock |
last post by:
Does the breaking of an ODBC connection produce a logoff event?
I can't seem to get it to.
What I was hoping was to use a trigger to do automatic cleanup
of session specific data. But the closing of the ODBC does not
fire the logoff trigger, even though closing sqlplus does.
Is there something I'm missing here? Is there a better way to
cleanup session specific data when connecting through ODBC?
I'm concerned with the case where the...
|
by: Michael |
last post by:
Hi,
I was creating a trigger to fire when a user ends a session, but I see that
you could have it fire on a SCHEMA event :
CREATE TRIGGER "SRU"."TEST" BEFORE
LOGOFF ON "SRU".SCHEMA
or a DATABASE event :
|
by: Kurt |
last post by:
Hi
I am using CDO 1.21 from C# in order to iterate through the entries in a users outlook address book (as OOM was too slow). Basically I take the Name field from each "message" and insert it into a ListBox. I shall paste my code at the end, and describe my problem first
If I call my MAPI.Sessions Logoff method when I have finished using it, then this method takes between 1 and 5 minutes to execute, but after that everything is fine
If...
| |
by: Roberto Kohler |
last post by:
Is there a way for an administrator to terminate ASP sessions if I know the
ASP Session IDs that I want to terminate?
Session.Abandon only works on the caller's session.
Is there something like Session.Kill(SessionID) ?
|
by: ad |
last post by:
In some condition, like another user log in with the some ID, I want to
close a user's session.
How can we terminate a user's session with program?
|
by: Jm |
last post by:
Hi All
I have an app that when running if a user selects logoff or shutdown from
the start menu, it will close itself but not logoff windows or shutdown.
From what i have found so far its most likely something ive declared in my
program that is preventing the logoff, i have tried closing and disposing
forms and sql connections, is there anything else i should be looking for ?
Or some way to step through it to find what is causing this
...
|
by: islandfong |
last post by:
I have a list of job scheduled to be executed in sequence with Oracle 10g. Each of these jobs could take quite a long time to run. Eventually user may decide to terminate the execution of the job in the middle. I don't want this termination action to impact the other jobs scheduled. Can I use 1 session for each job executed and terminate the session when user wants to terminate the job? If yes, I will have many sessions for these jobs in the...
|
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: 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: 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: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |