J
Jeff S
My intent is to write some information to a database when a new session of
my application begins. The code that writes to the database works great -
however the Session_Start procedure (in Global.asax.cs) is run for each page
requested. Specifically, what I'm observing is that when I start the
application via VS.NET 2003 (default.aspx), and then immediately navigate
via the browser to another page, and then immediately to another, I get one
entry in the database for each page opened. Stepping through at runtime
verifies that Session_Start is being called when each successive page is
opened. While I may be misunderstanding exectly when a session starts and
stops, I doubt a new session is supposed to start for every page requested.
I would appreciate it if someone could explain what ASP.NET considers to be
a session - when it starts, when it stops, etc.
Thanks.
my application begins. The code that writes to the database works great -
however the Session_Start procedure (in Global.asax.cs) is run for each page
requested. Specifically, what I'm observing is that when I start the
application via VS.NET 2003 (default.aspx), and then immediately navigate
via the browser to another page, and then immediately to another, I get one
entry in the database for each page opened. Stepping through at runtime
verifies that Session_Start is being called when each successive page is
opened. While I may be misunderstanding exectly when a session starts and
stops, I doubt a new session is supposed to start for every page requested.
I would appreciate it if someone could explain what ASP.NET considers to be
a session - when it starts, when it stops, etc.
Thanks.