look at the Session_onStart in the Global.asax file to catch the session
starting.
As for if it's a "new" one or not, you really can't.
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site:
http://www.Darkfalz.com
Blog:
http://blog.Darkfalz.com
"Chris" <freewonga@surf.to> wrote in message
news:57373c17.0408240710.6803507b@posting.google.c om...[color=blue]
> When a request comes into a page on my ASP.net site and a session is
> not found, I want to detect whether the request is an initial request
> or if the user did have a session going that has now been lost and
> show an explanatory message before restarting the session.
>
> Rather than tagging a 'session in progress' flag on the end of every
> request querystring I'd like to detect it using data sent in every
> request.
>
> One idea I had was that when a browser expecting a session sends a
> sessionId cookie that no longer matches a stored session in IIS, this
> indicates a lost session.
>
> Am I right in thinking that looking for the sessionId cookie is
> reliable way to detect the loss of a session and is there a better way
> that will work seemlessly for cookieless sessions as well?[/color]