Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
|
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 October 27th, 2005, 02:19 PM
Authorized User
 
Join Date: Jun 2005
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to connect2sandep
Default how to update a database when asp.net session ends

i am working with an application in which users can login. once the user has logged in the status (boolean) is set to 1 indicating the user is online. But a user may close the application window without sigining out. in that case the user's status must be set to offline when the user's session times out. please help me with this... i tried
editing to web.config file setting the session timeout to 1 minute and then invoking a method to update the database
as:
SetStatusOffline(Users.Identity.Name); in the 'Session_End' method in the global.asax file.

 
Old October 28th, 2005, 05:59 PM
Authorized User
 
Join Date: Jun 2005
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to connect2sandep
Default

please help me:
i need to change the status of a logged in user to offline when the user signs out. apparently the session_onend event does not fire? what might me the cause. this is a challenge problem. anyone who solves this for me is an asp.net guru.

 
Old October 28th, 2005, 06:42 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 ,

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

It deals with ASP and ASP.NET Session state.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Brick Is Red by The Pixies (Track 14 from the album: Surfer Rosa & Come On Pilgrim) What's This?
 
Old October 30th, 2005, 04:46 PM
Authorized User
 
Join Date: Jun 2005
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to connect2sandep
Default

thanks bro working on it right now...






Similar Threads
Thread Thread Starter Forum Replies Last Post
Update progress until another process ends? Kyle Ketterer Pro VB.NET 2002/2003 1 July 4th, 2004 09:23 PM
Can't update Access database under ASP with ADO bnorg ASP.NET 1.0 and 1.1 Basics 6 September 16th, 2003 02:18 PM





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