473,500 Members | 1,898 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Session_End never fires

I've got an ASP.NET page with a counter subtraction routine in the
Session_End method in the Global.asax.cs:

protected void Session_End(Object sender, EventArgs e)

{

ulong curUsers;

Application.Lock();

curUsers = (ulong)Application["curUsers"];

curUsers--;

Application["iCurUsers"] = curUsers;

Application.UnLock();

}

Basically, this is supposed to keep track of the number of users that are
logged into the system by keeping track of the number of open sessions --
except that the Session_End NEVER fires. I've checked my web.config file
and it does show the mode as InProc:

<sessionState

mode="InProc"

stateConnectionString="tcpip=127.0.0.1:42424"

sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"

cookieless="false"

timeout="20"

/>

Is there something else I missed??
Nov 17 '05 #1
9 10789
How do you know for sure that it NEVER fires? The Session_End Event happens
usually some time after the user has closed their browser or navigated
elsewhere. As the server has no idea what is happening on the client, the
Session ends 20 (by default, and according to your web.config file) minutes
after the last Request from that user. So, again, are you sure it is NEVER
firing?

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Some things just happen.
Everything else occurs.

"Kenn Ghannon" <ke****@ameritech.net> wrote in message
news:yL********************@newssvr28.news.prodigy .com...
I've got an ASP.NET page with a counter subtraction routine in the
Session_End method in the Global.asax.cs:

protected void Session_End(Object sender, EventArgs e)

{

ulong curUsers;

Application.Lock();

curUsers = (ulong)Application["curUsers"];

curUsers--;

Application["iCurUsers"] = curUsers;

Application.UnLock();

}

Basically, this is supposed to keep track of the number of users that are
logged into the system by keeping track of the number of open sessions --
except that the Session_End NEVER fires. I've checked my web.config file
and it does show the mode as InProc:

<sessionState

mode="InProc"

stateConnectionString="tcpip=127.0.0.1:42424"

sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"

cookieless="false"

timeout="20"

/>

Is there something else I missed??

Nov 17 '05 #2
I print the value of the curUsers counter (along with another one that is
supposed to keep track of the number of users that have ever visited the
site) on the home page. The values of these two counters are ALWAYS equal
and get reset at the same time (I've had both counters up to over 2000
before the application ended and each counter was reset to 0...because I
have a Application_End() routine that is supposed to save the counter to a
file -- and an accompanying Application_Start() routine to read it in so
that when the application starts again, I can start counting where I left
off -- but never seems to fire either. The counter file is always set to
0).
"Kevin Spencer" <ke***@SPAMMERSSUCKtakempis.com> wrote in message
news:#A**************@tk2msftngp13.phx.gbl...
How do you know for sure that it NEVER fires? The Session_End Event happens usually some time after the user has closed their browser or navigated
elsewhere. As the server has no idea what is happening on the client, the
Session ends 20 (by default, and according to your web.config file) minutes after the last Request from that user. So, again, are you sure it is NEVER
firing?

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Some things just happen.
Everything else occurs.

"Kenn Ghannon" <ke****@ameritech.net> wrote in message
news:yL********************@newssvr28.news.prodigy .com...
I've got an ASP.NET page with a counter subtraction routine in the
Session_End method in the Global.asax.cs:

protected void Session_End(Object sender, EventArgs e)

{

ulong curUsers;

Application.Lock();

curUsers = (ulong)Application["curUsers"];

curUsers--;

Application["iCurUsers"] = curUsers;

Application.UnLock();

}

Basically, this is supposed to keep track of the number of users that are logged into the system by keeping track of the number of open sessions -- except that the Session_End NEVER fires. I've checked my web.config file and it does show the mode as InProc:

<sessionState

mode="InProc"

stateConnectionString="tcpip=127.0.0.1:42424"

sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"

cookieless="false"

timeout="20"

/>

Is there something else I missed??


Nov 17 '05 #3
look for code logic problems, cause it will fire - i promise!

also, you can force the event with SESSION.ABANDON method... and place a
break-point to debug the routine...
"Kenn Ghannon" <ke****@ameritech.net> wrote in message
news:p5********************@newssvr28.news.prodigy .com...
I print the value of the curUsers counter (along with another one that is
supposed to keep track of the number of users that have ever visited the
site) on the home page. The values of these two counters are ALWAYS equal
and get reset at the same time (I've had both counters up to over 2000
before the application ended and each counter was reset to 0...because I
have a Application_End() routine that is supposed to save the counter to a
file -- and an accompanying Application_Start() routine to read it in so
that when the application starts again, I can start counting where I left
off -- but never seems to fire either. The counter file is always set to
0).
"Kevin Spencer" <ke***@SPAMMERSSUCKtakempis.com> wrote in message
news:#A**************@tk2msftngp13.phx.gbl...
How do you know for sure that it NEVER fires? The Session_End Event

happens
usually some time after the user has closed their browser or navigated
elsewhere. As the server has no idea what is happening on the client, the
Session ends 20 (by default, and according to your web.config file)

minutes
after the last Request from that user. So, again, are you sure it is NEVER firing?

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Some things just happen.
Everything else occurs.

"Kenn Ghannon" <ke****@ameritech.net> wrote in message
news:yL********************@newssvr28.news.prodigy .com...
I've got an ASP.NET page with a counter subtraction routine in the
Session_End method in the Global.asax.cs:

protected void Session_End(Object sender, EventArgs e)

{

ulong curUsers;

Application.Lock();

curUsers = (ulong)Application["curUsers"];

curUsers--;

Application["iCurUsers"] = curUsers;

Application.UnLock();

}

Basically, this is supposed to keep track of the number of users that

are logged into the system by keeping track of the number of open sessions -- except that the Session_End NEVER fires. I've checked my web.config file and it does show the mode as InProc:

<sessionState

mode="InProc"

stateConnectionString="tcpip=127.0.0.1:42424"

sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"

cookieless="false"

timeout="20"

/>

Is there something else I missed??



Nov 17 '05 #4
No real error handling...but I've even gone so far as to put a
Session.Abandon() call in my code-behind file...and it STILL does not end.
Here're the particulars:

From my home.aspx.cs file:
private void Page_Load(object sender, System.EventArgs e)

{

orgLog myLog = (orgLog)Application["orgLog"];

myLog.WriteLine( "Testing" );

Session.Abandon();

}

From my global.asax.cs file:
protected void Session_Start(Object sender, EventArgs e)

{

orgLog LogFile;

Application.Lock();

LogFile = (orgLog)Application["orgLog"];

Application.UnLock();

Session["IPADDR"] = "19.19.19.19"; // just used to store something in the
session

LogFile.WriteLine( ":: Session Begins for " +
Request.ServerVariables["REMOTE_ADDR"].ToString() );

}

protected void Session_End(Object sender, EventArgs e)

{

orgLog LogFile;

Application.Lock();

LogFile = (orgLog)Application["orgLog"];

Application.UnLock();

LogFile.WriteLine( ":: Session Ends for " +
Request.ServerVariables["REMOTE_ADDR"].ToString() );

}

// orgLog is a home made information logging tool (it creates a log file).
I'd think that maybe the problem is here, but I can log to it over and over
without difficulty..

From the Log File:

[7/9/2003 4:10:37 PM] == Application Starts ==
[7/9/2003 4:10:38 PM] :: Session Begins for 127.0.0.1
[7/9/2003 4:10:38 PM] Testing
[7/9/2003 4:25:25 PM] == Application Starts ==
[7/9/2003 4:25:25 PM] :: Session Begins for 127.0.0.1
[7/9/2003 4:25:25 PM] Testing
[7/9/2003 4:30:27 PM] :: Session Begins for 127.0.0.1
[7/9/2003 4:30:27 PM] Testing
[7/9/2003 4:30:28 PM] :: Session Begins for 127.0.0.1
[7/9/2003 4:30:28 PM] Testing

Notice that I'm getting a new Session for each iteration (I'm not sure why)
but I'm never getting a Session_End...

If anyone notices anything out of place, please let me know. I've got my
session timeout set to 1, so I should be getting the session_end after a
minute...but I just seem to be getting a new session without the old session
ever ending...

"Kevin Spencer" <ke***@SPAMMERSSUCKtakempis.com> wrote in message
news:Ol**************@TK2MSFTNGP10.phx.gbl...
What sort of error-handling are you implementing for this? It sounds like an error may be aborting the process somewhere.

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Some things just happen.
Everything else occurs.

"Kenn Ghannon" <ke****@ameritech.net> wrote in message
news:p5********************@newssvr28.news.prodigy .com...
I print the value of the curUsers counter (along with another one that is
supposed to keep track of the number of users that have ever visited the
site) on the home page. The values of these two counters are ALWAYS equal and get reset at the same time (I've had both counters up to over 2000
before the application ended and each counter was reset to 0...because I
have a Application_End() routine that is supposed to save the counter to a file -- and an accompanying Application_Start() routine to read it in so
that when the application starts again, I can start counting where I left off -- but never seems to fire either. The counter file is always set to 0).
"Kevin Spencer" <ke***@SPAMMERSSUCKtakempis.com> wrote in message
news:#A**************@tk2msftngp13.phx.gbl...
How do you know for sure that it NEVER fires? The Session_End Event

happens
usually some time after the user has closed their browser or navigated
elsewhere. As the server has no idea what is happening on the client, the Session ends 20 (by default, and according to your web.config file)

minutes
after the last Request from that user. So, again, are you sure it is NEVER firing?

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Some things just happen.
Everything else occurs.

"Kenn Ghannon" <ke****@ameritech.net> wrote in message
news:yL********************@newssvr28.news.prodigy .com...
> I've got an ASP.NET page with a counter subtraction routine in the
> Session_End method in the Global.asax.cs:
>
> protected void Session_End(Object sender, EventArgs e)
>
> {
>
> ulong curUsers;
>
> Application.Lock();
>
> curUsers = (ulong)Application["curUsers"];
>
> curUsers--;
>
> Application["iCurUsers"] = curUsers;
>
> Application.UnLock();
>
> }
>
> Basically, this is supposed to keep track of the number of users

that are
> logged into the system by keeping track of the number of open

sessions --
> except that the Session_End NEVER fires. I've checked my web.config

file
> and it does show the mode as InProc:
>
> <sessionState
>
> mode="InProc"
>
> stateConnectionString="tcpip=127.0.0.1:42424"
>
> sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
>
> cookieless="false"
>
> timeout="20"
>
> />
>
> Is there something else I missed??
>
>



Nov 17 '05 #5
Actually, I DO know why...the added Session.Abandon()...but it still never
goes to Session_End...
"Kenn Ghannon" <ke****@ameritech.net> wrote in message
news:x_********************@newssvr28.news.prodigy .com...
No real error handling...but I've even gone so far as to put a
Session.Abandon() call in my code-behind file...and it STILL does not end.
Here're the particulars:

From my home.aspx.cs file:
private void Page_Load(object sender, System.EventArgs e)

{

orgLog myLog = (orgLog)Application["orgLog"];

myLog.WriteLine( "Testing" );

Session.Abandon();

}

From my global.asax.cs file:
protected void Session_Start(Object sender, EventArgs e)

{

orgLog LogFile;

Application.Lock();

LogFile = (orgLog)Application["orgLog"];

Application.UnLock();

Session["IPADDR"] = "19.19.19.19"; // just used to store something in the
session

LogFile.WriteLine( ":: Session Begins for " +
Request.ServerVariables["REMOTE_ADDR"].ToString() );

}

protected void Session_End(Object sender, EventArgs e)

{

orgLog LogFile;

Application.Lock();

LogFile = (orgLog)Application["orgLog"];

Application.UnLock();

LogFile.WriteLine( ":: Session Ends for " +
Request.ServerVariables["REMOTE_ADDR"].ToString() );

}

// orgLog is a home made information logging tool (it creates a log file).
I'd think that maybe the problem is here, but I can log to it over and over without difficulty..

From the Log File:

[7/9/2003 4:10:37 PM] == Application Starts ==
[7/9/2003 4:10:38 PM] :: Session Begins for 127.0.0.1
[7/9/2003 4:10:38 PM] Testing
[7/9/2003 4:25:25 PM] == Application Starts ==
[7/9/2003 4:25:25 PM] :: Session Begins for 127.0.0.1
[7/9/2003 4:25:25 PM] Testing
[7/9/2003 4:30:27 PM] :: Session Begins for 127.0.0.1
[7/9/2003 4:30:27 PM] Testing
[7/9/2003 4:30:28 PM] :: Session Begins for 127.0.0.1
[7/9/2003 4:30:28 PM] Testing

Notice that I'm getting a new Session for each iteration (I'm not sure why) but I'm never getting a Session_End...

If anyone notices anything out of place, please let me know. I've got my
session timeout set to 1, so I should be getting the session_end after a
minute...but I just seem to be getting a new session without the old session ever ending...

"Kevin Spencer" <ke***@SPAMMERSSUCKtakempis.com> wrote in message
news:Ol**************@TK2MSFTNGP10.phx.gbl...
What sort of error-handling are you implementing for this? It sounds like
an
error may be aborting the process somewhere.

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Some things just happen.
Everything else occurs.

"Kenn Ghannon" <ke****@ameritech.net> wrote in message
news:p5********************@newssvr28.news.prodigy .com...
I print the value of the curUsers counter (along with another one that is supposed to keep track of the number of users that have ever visited the site) on the home page. The values of these two counters are ALWAYS equal and get reset at the same time (I've had both counters up to over 2000
before the application ended and each counter was reset to 0...because I have a Application_End() routine that is supposed to save the counter to
a
file -- and an accompanying Application_Start() routine to read it in
so that when the application starts again, I can start counting where I

left off -- but never seems to fire either. The counter file is always set to 0).
"Kevin Spencer" <ke***@SPAMMERSSUCKtakempis.com> wrote in message
news:#A**************@tk2msftngp13.phx.gbl...
> How do you know for sure that it NEVER fires? The Session_End Event
happens
> usually some time after the user has closed their browser or navigated > elsewhere. As the server has no idea what is happening on the client, the
> Session ends 20 (by default, and according to your web.config file)
minutes
> after the last Request from that user. So, again, are you sure it is

NEVER
> firing?
>
> HTH,
>
> Kevin Spencer
> Microsoft FrontPage MVP
> Internet Developer
> http://www.takempis.com
> Some things just happen.
> Everything else occurs.
>
> "Kenn Ghannon" <ke****@ameritech.net> wrote in message
> news:yL********************@newssvr28.news.prodigy .com...
> > I've got an ASP.NET page with a counter subtraction routine in the
> > Session_End method in the Global.asax.cs:
> >
> > protected void Session_End(Object sender, EventArgs e)
> >
> > {
> >
> > ulong curUsers;
> >
> > Application.Lock();
> >
> > curUsers = (ulong)Application["curUsers"];
> >
> > curUsers--;
> >
> > Application["iCurUsers"] = curUsers;
> >
> > Application.UnLock();
> >
> > }
> >
> > Basically, this is supposed to keep track of the number of users that are
> > logged into the system by keeping track of the number of open
sessions --
> > except that the Session_End NEVER fires. I've checked my

web.config file
> > and it does show the mode as InProc:
> >
> > <sessionState
> >
> > mode="InProc"
> >
> > stateConnectionString="tcpip=127.0.0.1:42424"
> >
> > sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
> >
> > cookieless="false"
> >
> > timeout="20"
> >
> > />
> >
> > Is there something else I missed??
> >
> >
>
>



Nov 17 '05 #6
Of course the Request object is invalid on Session_End! The Session ends
AFTER the last Request has been processed!

--
HTH,

Kevin Spencer
..Net Developer
Microsoft MVP
http://www.takempis.com
Big things are made up
of lots of little things

"Kenn Ghannon" <ke****@ameritech.net> wrote in message
news:Wa********************@newssvr28.news.prodigy .com...
Please excuse me for being a freaking newbie. :) I didn't know that you
could debug the global.asax.cs file...

Turns out that the Request object is no longer valid during Session_End (It says there's an HTML Exception when doing a 'Watch' of the Request object -- but I'm not doing anything weird and I've walked it until the session timed out -- and the Request object was valid when the page rendered and wasn't
when it came back to Session_End...

"Kenn Ghannon" <ke****@ameritech.net> wrote in message
news:yL********************@newssvr28.news.prodigy .com...
I've got an ASP.NET page with a counter subtraction routine in the
Session_End method in the Global.asax.cs:

protected void Session_End(Object sender, EventArgs e)

{

ulong curUsers;

Application.Lock();

curUsers = (ulong)Application["curUsers"];

curUsers--;

Application["iCurUsers"] = curUsers;

Application.UnLock();

}

Basically, this is supposed to keep track of the number of users that are logged into the system by keeping track of the number of open sessions -- except that the Session_End NEVER fires. I've checked my web.config file and it does show the mode as InProc:

<sessionState

mode="InProc"

stateConnectionString="tcpip=127.0.0.1:42424"

sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"

cookieless="false"

timeout="20"

/>

Is there something else I missed??


Nov 17 '05 #7
BTW, using some try/catch blocks in your code would have helped you debug a
good bit. For example, you could have the app write an Event Log entry with
a Stack Trace and the error details when an error occurs. That way you would
know exactly where any error occurs.

--
HTH,

Kevin Spencer
..Net Developer
Microsoft MVP
http://www.takempis.com
Big things are made up
of lots of little things

"Kenn Ghannon" <ke****@ameritech.net> wrote in message
news:Wa********************@newssvr28.news.prodigy .com...
Please excuse me for being a freaking newbie. :) I didn't know that you
could debug the global.asax.cs file...

Turns out that the Request object is no longer valid during Session_End (It says there's an HTML Exception when doing a 'Watch' of the Request object -- but I'm not doing anything weird and I've walked it until the session timed out -- and the Request object was valid when the page rendered and wasn't
when it came back to Session_End...

"Kenn Ghannon" <ke****@ameritech.net> wrote in message
news:yL********************@newssvr28.news.prodigy .com...
I've got an ASP.NET page with a counter subtraction routine in the
Session_End method in the Global.asax.cs:

protected void Session_End(Object sender, EventArgs e)

{

ulong curUsers;

Application.Lock();

curUsers = (ulong)Application["curUsers"];

curUsers--;

Application["iCurUsers"] = curUsers;

Application.UnLock();

}

Basically, this is supposed to keep track of the number of users that are logged into the system by keeping track of the number of open sessions -- except that the Session_End NEVER fires. I've checked my web.config file and it does show the mode as InProc:

<sessionState

mode="InProc"

stateConnectionString="tcpip=127.0.0.1:42424"

sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"

cookieless="false"

timeout="20"

/>

Is there something else I missed??


Nov 17 '05 #8
You're right...but my development machine is not going to be where the app
finally resides and I don't have access to the Event log of that server --
so I've been trying to make do without using traces...
"Kevin Spencer" <ke*****************@takempis.com> wrote in message
news:eW**************@TK2MSFTNGP11.phx.gbl...
BTW, using some try/catch blocks in your code would have helped you debug a good bit. For example, you could have the app write an Event Log entry with a Stack Trace and the error details when an error occurs. That way you would know exactly where any error occurs.

--
HTH,

Kevin Spencer
.Net Developer
Microsoft MVP
http://www.takempis.com
Big things are made up
of lots of little things

"Kenn Ghannon" <ke****@ameritech.net> wrote in message
news:Wa********************@newssvr28.news.prodigy .com...
Please excuse me for being a freaking newbie. :) I didn't know that you
could debug the global.asax.cs file...

Turns out that the Request object is no longer valid during Session_End

(It
says there's an HTML Exception when doing a 'Watch' of the Request

object --
but I'm not doing anything weird and I've walked it until the session

timed
out -- and the Request object was valid when the page rendered and wasn't when it came back to Session_End...

"Kenn Ghannon" <ke****@ameritech.net> wrote in message
news:yL********************@newssvr28.news.prodigy .com...
I've got an ASP.NET page with a counter subtraction routine in the
Session_End method in the Global.asax.cs:

protected void Session_End(Object sender, EventArgs e)

{

ulong curUsers;

Application.Lock();

curUsers = (ulong)Application["curUsers"];

curUsers--;

Application["iCurUsers"] = curUsers;

Application.UnLock();

}

Basically, this is supposed to keep track of the number of users that

are logged into the system by keeping track of the number of open sessions -- except that the Session_End NEVER fires. I've checked my web.config file and it does show the mode as InProc:

<sessionState

mode="InProc"

stateConnectionString="tcpip=127.0.0.1:42424"

sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"

cookieless="false"

timeout="20"

/>

Is there something else I missed??



Nov 17 '05 #9
Well, what you can do is write a global Error Handler method that all of
your outermost try/catch blocks use. Then you can change the implementation
of that Error Handler whenever you feel that it is appropriate for the
platform you're running the app on. In any case, it's a good idea to have
some kind of "graceful" error-handling in whatever situation you're in.

--
HTH,

Kevin Spencer
..Net Developer
Microsoft MVP
http://www.takempis.com
Big things are made up
of lots of little things

"Kenn Ghannon" <ke****@ameritech.net> wrote in message
news:an********************@newssvr28.news.prodigy .com...
You're right...but my development machine is not going to be where the app
finally resides and I don't have access to the Event log of that server --
so I've been trying to make do without using traces...
"Kevin Spencer" <ke*****************@takempis.com> wrote in message
news:eW**************@TK2MSFTNGP11.phx.gbl...
BTW, using some try/catch blocks in your code would have helped you debug
a
good bit. For example, you could have the app write an Event Log entry

with
a Stack Trace and the error details when an error occurs. That way you

would
know exactly where any error occurs.

--
HTH,

Kevin Spencer
.Net Developer
Microsoft MVP
http://www.takempis.com
Big things are made up
of lots of little things

"Kenn Ghannon" <ke****@ameritech.net> wrote in message
news:Wa********************@newssvr28.news.prodigy .com...
Please excuse me for being a freaking newbie. :) I didn't know that you could debug the global.asax.cs file...

Turns out that the Request object is no longer valid during
Session_End (It
says there's an HTML Exception when doing a 'Watch' of the Request

object --
but I'm not doing anything weird and I've walked it until the session

timed
out -- and the Request object was valid when the page rendered and wasn't when it came back to Session_End...

"Kenn Ghannon" <ke****@ameritech.net> wrote in message
news:yL********************@newssvr28.news.prodigy .com...
> I've got an ASP.NET page with a counter subtraction routine in the
> Session_End method in the Global.asax.cs:
>
> protected void Session_End(Object sender, EventArgs e)
>
> {
>
> ulong curUsers;
>
> Application.Lock();
>
> curUsers = (ulong)Application["curUsers"];
>
> curUsers--;
>
> Application["iCurUsers"] = curUsers;
>
> Application.UnLock();
>
> }
>
> Basically, this is supposed to keep track of the number of users

that are
> logged into the system by keeping track of the number of open

sessions --
> except that the Session_End NEVER fires. I've checked my web.config

file
> and it does show the mode as InProc:
>
> <sessionState
>
> mode="InProc"
>
> stateConnectionString="tcpip=127.0.0.1:42424"
>
> sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
>
> cookieless="false"
>
> timeout="20"
>
> />
>
> Is there something else I missed??
>
>



Nov 17 '05 #10

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

Similar topics

2
2366
by: Bonj | last post by:
Hi I have an ASP.NET application which implements a server-side charting solution, for this it needs to generate .gif files which are then sent to the browser via a literal which has its text set...
5
3449
by: JezB | last post by:
Why is my Session_End event in global.asax never firing ? I've tried fiddling with the timeouts but still nothing. Ideally I want to do some processing whenever someone leaves my web application...
3
566
by: Guadala Harry | last post by:
Just wondering if Session_End *always fires* for every Session. I know that IIS times out sessions after a default 20 min (unless changed) and there's no way to know when a user actually closed a...
5
1732
by: Lars Netzel | last post by:
In Global asax the Session_End Sub fires off every now and then. I only want it to fire when I call Session.Abandon() but it fires off totally randon when just suring around in my ASP.NET solution....
1
6890
by: =?Utf-8?B?YnJlbnQ5NjA=?= | last post by:
Environment: ASP.NET 2.0, SQL Server 2005, C#, Visual Studio 2005 In my Session_End event, I am executing a stored procedure to update a database table that is used to log user sessions. When...
12
10628
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post by:
Hi. I am trying to maintain a list of people who are currently "online" in SQL. I do this by adding a simple entry to a simple PeopleOnline table whenever someone logs in to my site. If they...
3
5752
by: Mufasa | last post by:
I have code in my session_start to create a temp directory for the session. On session_end it is supposed to delete the directory but doesn't seem to be firing. I've enclosed the code below. ...
5
2749
by: Ron J | last post by:
I would like to keep track of users when they are 'on'. On Session_Start I can write a DB record about them, but there does not seem to be session variable information during the Session_end event...
8
1781
by: vickyl | last post by:
Hi, I've been having this problem for the pas few days so i thought i'd post and see if anyone could help. I have an application that has code to delete file in Session_end. When i start a...
0
7136
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
7018
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...
0
7232
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
7397
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
5490
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
4611
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...
0
3110
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...
0
3106
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1430
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.