I can't seem to get the session_end event to work?
I've tried to update databases in it and response.redire ct to someplace
else.
Nothing works.
I load page and leave it for 60 minutes and I know that the session id
expired.
I used session.abandon and it didn't fire the session_end.
How can I test this? What is a good way to test if it's working?
Thanks 6 3258
It only works if you use in-proc session state manager.
If you use state server or db state server, you're out of luck.
-Rob Teixeira [MVP]
"Tony" <To***********@ msn.com> wrote in message
news:OO******** *****@TK2MSFTNG P11.phx.gbl... I can't seem to get the session_end event to work? I've tried to update databases in it and response.redire ct to someplace else. Nothing works. I load page and leave it for 60 minutes and I know that the session id expired. I used session.abandon and it didn't fire the session_end.
How can I test this? What is a good way to test if it's working?
Thanks
How can I set things to use in-proc session state manager or is that
controlled by the hosting service of my website?
Thanks
"Rob Teixeira [MVP]" <RobTeixeira@@m sn.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. .. It only works if you use in-proc session state manager. If you use state server or db state server, you're out of luck.
-Rob Teixeira [MVP]
"Tony" <To***********@ msn.com> wrote in message news:OO******** *****@TK2MSFTNG P11.phx.gbl... I can't seem to get the session_end event to work? I've tried to update databases in it and response.redire ct to someplace else. Nothing works. I load page and leave it for 60 minutes and I know that the session id expired. I used session.abandon and it didn't fire the session_end.
How can I test this? What is a good way to test if it's working?
Thanks
in your web.config file, check for this element: http://msdn.microsoft.com/library/de...atesection.asp
-Rob Teixeira [MVP]
"Tony" <To************ @msn.com> wrote in message
news:Oa******** ******@TK2MSFTN GP11.phx.gbl... How can I set things to use in-proc session state manager or is that controlled by the hosting service of my website?
Thanks
"Rob Teixeira [MVP]" <RobTeixeira@@m sn.com> wrote in message news:%2******** ********@TK2MSF TNGP09.phx.gbl. .. It only works if you use in-proc session state manager. If you use state server or db state server, you're out of luck.
-Rob Teixeira [MVP]
"Tony" <To***********@ msn.com> wrote in message news:OO******** *****@TK2MSFTNG P11.phx.gbl... I can't seem to get the session_end event to work? I've tried to update databases in it and response.redire ct to
someplace else. Nothing works. I load page and leave it for 60 minutes and I know that the session id expired. I used session.abandon and it didn't fire the session_end.
How can I test this? What is a good way to test if it's working?
Thanks
Ok it was already set to in-proc management state.
what is a good test to see what I'm doing wrong?
the session_start works perfect. but the session_end doesn't seem to work?
Thanks
"Rob Teixeira [MVP]" <RobTeixeira@@m sn.com> wrote in message
news:%2******** **********@tk2m sftngp13.phx.gb l... in your web.config file, check for this element:
http://msdn.microsoft.com/library/de...atesection.asp -Rob Teixeira [MVP]
"Tony" <To************ @msn.com> wrote in message news:Oa******** ******@TK2MSFTN GP11.phx.gbl... How can I set things to use in-proc session state manager or is that controlled by the hosting service of my website?
Thanks
"Rob Teixeira [MVP]" <RobTeixeira@@m sn.com> wrote in message news:%2******** ********@TK2MSF TNGP09.phx.gbl. .. It only works if you use in-proc session state manager. If you use state server or db state server, you're out of luck.
-Rob Teixeira [MVP]
"Tony" <To***********@ msn.com> wrote in message news:OO******** *****@TK2MSFTNG P11.phx.gbl... > I can't seem to get the session_end event to work? > I've tried to update databases in it and response.redire ct to someplace > else. > Nothing works. > I load page and leave it for 60 minutes and I know that the session
id > expired. > I used session.abandon and it didn't fire the session_end. > > How can I test this? What is a good way to test if it's working? > > Thanks > >
If you are already using the in-proc session managemer, there's only one
other thing i can think of. Session only gets established (if i remember
correctly) when you stuff something into session and a request is completely
fulfilled. If the user's visit to the site never puts any data into session
state, this user won't have an established session, and no session_end will
fire.
Try stuffing something into session on a page, and then call
Session.Abandon () to see if it fires.
-Rob Teixeira [MVP]
"Tony" <To************ @msn.com> wrote in message
news:OC******** ******@tk2msftn gp13.phx.gbl...
Ok it was already set to in-proc management state. what is a good test to see what I'm doing wrong? the session_start works perfect. but the session_end doesn't seem to work?
Thanks
"Rob Teixeira [MVP]" <RobTeixeira@@m sn.com> wrote in message news:%2******** **********@tk2m sftngp13.phx.gb l... in your web.config file, check for this element:
http://msdn.microsoft.com/library/de...atesection.asp -Rob Teixeira [MVP]
"Tony" <To************ @msn.com> wrote in message news:Oa******** ******@TK2MSFTN GP11.phx.gbl... How can I set things to use in-proc session state manager or is that controlled by the hosting service of my website?
Thanks
"Rob Teixeira [MVP]" <RobTeixeira@@m sn.com> wrote in message news:%2******** ********@TK2MSF TNGP09.phx.gbl. .. > It only works if you use in-proc session state manager. > If you use state server or db state server, you're out of luck. > > -Rob Teixeira [MVP] > > "Tony" <To***********@ msn.com> wrote in message > news:OO******** *****@TK2MSFTNG P11.phx.gbl... > > I can't seem to get the session_end event to work? > > I've tried to update databases in it and response.redire ct to someplace > > else. > > Nothing works. > > I load page and leave it for 60 minutes and I know that the
session id > > expired. > > I used session.abandon and it didn't fire the session_end. > > > > How can I test this? What is a good way to test if it's working? > > > > Thanks > > > > > >
thanks very for your help
Did that also.
well if you can think of anything else drop me a note
thanks anyway
"Rob Teixeira [MVP]" <RobTeixeira@@m sn.com> wrote in message
news:eD******** ********@TK2MSF TNGP12.phx.gbl. .. If you are already using the in-proc session managemer, there's only one other thing i can think of. Session only gets established (if i remember correctly) when you stuff something into session and a request is
completely fulfilled. If the user's visit to the site never puts any data into
session state, this user won't have an established session, and no session_end
will fire.
Try stuffing something into session on a page, and then call Session.Abandon () to see if it fires.
-Rob Teixeira [MVP]
"Tony" <To************ @msn.com> wrote in message news:OC******** ******@tk2msftn gp13.phx.gbl...
Ok it was already set to in-proc management state. what is a good test to see what I'm doing wrong? the session_start works perfect. but the session_end doesn't seem to
work?
Thanks
"Rob Teixeira [MVP]" <RobTeixeira@@m sn.com> wrote in message news:%2******** **********@tk2m sftngp13.phx.gb l... in your web.config file, check for this element:
http://msdn.microsoft.com/library/de...atesection.asp -Rob Teixeira [MVP]
"Tony" <To************ @msn.com> wrote in message news:Oa******** ******@TK2MSFTN GP11.phx.gbl... > How can I set things to use in-proc session state manager or is that > controlled by the hosting service of my website? > > Thanks > > "Rob Teixeira [MVP]" <RobTeixeira@@m sn.com> wrote in message > news:%2******** ********@TK2MSF TNGP09.phx.gbl. .. > > It only works if you use in-proc session state manager. > > If you use state server or db state server, you're out of luck. > > > > -Rob Teixeira [MVP] > > > > "Tony" <To***********@ msn.com> wrote in message > > news:OO******** *****@TK2MSFTNG P11.phx.gbl... > > > I can't seem to get the session_end event to work? > > > I've tried to update databases in it and response.redire ct to someplace > > > else. > > > Nothing works. > > > I load page and leave it for 60 minutes and I know that the
session id > > > expired. > > > I used session.abandon and it didn't fire the session_end. > > > > > > How can I test this? What is a good way to test if it's
working? > > > > > > Thanks > > > > > > > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Stephanie Stowe |
last post by:
http://www.aspfaq.com/show.asp?id=2078
I got my butt whooped over at asp.net group the other day with an offhanded
reference to the unreliability of session on end. I have been told that in
ASP IIS 5 and beyond, it IS reliable and DOES fire. What's the real word?
Thanks
|
by: Jeff Smythe |
last post by:
I simply want to execute some code once when a new session of my ASP.NET
application is started (I'm not using session state for anything else - just
writing some data to a database). I thought that I could simply put the code
in the Session_Start event procedure in Global.asax.cs, however, the event
procedure executes and a new session is created every time any page is
requested - not just for the first page requested....
|
by: Armen Kirakosyan |
last post by:
Hi
I have web site developed and now wanna to check how many people is
connected
In all MS articles written to use
Application_start
Session_start
Session_end
functions in Global.asa
BUT!!!!!!!!!!!!!!!!!!!!!
after many tries I see that Session_end almost never fires
|
by: SeanGallavan |
last post by:
Our Environment:
Two network load balanced (using Microsoft NLB software) webservers
with session maintained in a SQL Server database. NLB is configured
with no affinity settings and two network cards in each machine.
Machine keys are identical on both webservers. There is no anti-virus
software installed. SQL Server database is storing session information
as specified by Microsoft guidelines.
|
by: N. Shehzad |
last post by:
This button click is fired for first time, but does not get fired for second
time if I click. It again fires 3rd time, but not 4th time and so on..
I want to button to be fired everytime.
I want to add new valyes to my Session of ArrayList type when Button is
clicked.
Can anyone help? Please let me know what I am doing wrong. Here is a sample
call:
| |
by: Sean |
last post by:
Problem with sessions
I have created an application without concern for sessions. As it turns out
I think that might be my undoing.
What I have:
I have an online quiz.
I don’t need to know users or save any data. If the application crashes or
user exits the program they should simply start again. Pretty basic.
All interactions are stored in an array (not much going on to save to a
|
by: David Lozzi |
last post by:
Howdy,
is the Session_End event a guarantee event to be fired? I have this memory
of back in ASP and IIS 4 that the event was guaranteed, like a 50/50 chance.
If I have some shopping cart clean up functions in the Session_End event,
will that fire every single time a user's session expires whether from
closing the browser window, browsing to another site or programatically
abandoning a session? Or is there a better way?
Thanks,
|
by: Dan Colgan |
last post by:
Hi, I am thoroughly fed up. I have been trying for a few weeks to get
an understanding of when events for session and application fire and why
they don't for me.
I am understanding the Application_End situation and that it is not
necessarily going to fire because of the multiple users that come and
go... however!!!!!!
From all I've read the Session event should fire after the timeout for
that particular user's session has expired (20...
|
by: HammRadio |
last post by:
I am exploring converting my web app (current Framework 1.1) to
Framework 2.0. Everything went smoothly save for one item. To reduce
the trips to the database, when loading user controls (like a large
datagrid or form), we store the grid or form in Session Object. On
PostBack we grab the control from the session, add it to our main
form. In VS 2003 (1.1), the page will fire any event called in the
custom control, e.g, cmdSave_Click. ...
|
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: 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: 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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |