Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 6th, 2006, 12:08 PM
Registered User
 
Join Date: Aug 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to hemal_301080
Default Asp.net Logout problems

Hello

I am having a problem regarding logging out in asp.net.

I am having a website which asks users to enter username and password to verify the entry. Also in database his loginstatus is made true indicating his login.

Now when user logs out by closing browser window, i expected session_end to run, in which i have the log out code.

But it doesnt happen and user is still shown logged in while he is actually gone.

Can you tell me any suggesion through which i can set loginstatus to false at the time of browser closing?

Thanks in advance
Hemal

 
Old August 6th, 2006, 12:16 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Session_End doesn't fire when the browser is closed. This is by design, as the server doesn't know the browser has been closed.

Take a look at this thread: http://p2p.wrox.com/topic.asp?TOPIC_ID=1774

Try to ignore the comments by that idiot Alex as they don't really add something relevant to the discussion....

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.





Similar Threads
Thread Thread Starter Forum Replies Last Post
New to ASP.NET and lots of problems Lessa ASP.NET 1.0 and 1.1 Basics 7 April 29th, 2008 07:05 AM
LogOut in ASP.NET Manoj Bisht ASP.NET 2.0 Professional 3 March 4th, 2008 09:25 AM
Urgent!! need help...Logout problems riki_gill ASP.NET 1.x and 2.0 Application Design 0 October 20th, 2006 09:21 AM
Problems with debugging ASp.net ocabrera70 ASP.NET 2.0 Basics 1 March 1st, 2006 03:49 PM
New to ASP.NET w/ C# and having problems digitaltoddy BOOK: Beginning ASP.NET 1.0 1 September 20th, 2004 07:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.