By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,936 Members | 2,023 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,936 IT Pros & Developers. It's quick & easy.

session_start not firing on production server

P: n/a
Written in Asp.Net 2.0
The session_start fires on Development server running withing Visual Studio
2005
and also if access web site via localhost on development machine.

But if copy to development machine event does not fire

I created a barebones webapplication not website and put code in
session_start
will not fire

I have seen another post about this, but no resolution was found.

Feb 12 '08 #1
Share this Question
Share on Google+
5 Replies


P: n/a
And the other post said ? Have you checked in the IIS "Home directory" tab,
"Application settings" section that the application is created (that is the
button is "Remove" instead of "Create") and that session state is enabled
for this application ("configuration" button, "Options" tab).

Also what do you do in this event ? (imo for a test the simplest would be
just to set a session variable with the current date/time, this is to make
sure the diagnostic is correct).

--
Patrice

"greg" <gr**@no.spam.newsa écrit dans le message de news:
uV**************@TK2MSFTNGP03.phx.gbl...
Written in Asp.Net 2.0
The session_start fires on Development server running withing Visual
Studio 2005
and also if access web site via localhost on development machine.

But if copy to development machine event does not fire

I created a barebones webapplication not website and put code in
session_start
will not fire

I have seen another post about this, but no resolution was found.

Feb 12 '08 #2

P: n/a
Yes, it is an application
And sessionstate is enabled.

I resorted to throwing an exception in the session_state
nothing happens on production server

In fact we have two production servers that do exactly the same thing
but not my development server
"Patrice" <http://www.chez.com/scribe/wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
And the other post said ? Have you checked in the IIS "Home directory"
tab, "Application settings" section that the application is created (that
is the button is "Remove" instead of "Create") and that session state is
enabled for this application ("configuration" button, "Options" tab).

Also what do you do in this event ? (imo for a test the simplest would be
just to set a session variable with the current date/time, this is to make
sure the diagnostic is correct).

--
Patrice

"greg" <gr**@no.spam.newsa écrit dans le message de news:
uV**************@TK2MSFTNGP03.phx.gbl...
>Written in Asp.Net 2.0
The session_start fires on Development server running withing Visual
Studio 2005
and also if access web site via localhost on development machine.

But if copy to development machine event does not fire

I created a barebones webapplication not website and put code in
session_start
will not fire

I have seen another post about this, but no resolution was found.


Feb 12 '08 #3

P: n/a
How do you know it's not firing?
May be exception is thrown in the Session_Start code....

George.

"greg" <gr**@no.spam.newswrote in message
news:ed*************@TK2MSFTNGP06.phx.gbl...
Yes, it is an application
And sessionstate is enabled.

I resorted to throwing an exception in the session_state
nothing happens on production server

In fact we have two production servers that do exactly the same thing
but not my development server
"Patrice" <http://www.chez.com/scribe/wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>And the other post said ? Have you checked in the IIS "Home directory"
tab, "Application settings" section that the application is created (that
is the button is "Remove" instead of "Create") and that session state is
enabled for this application ("configuration" button, "Options" tab).

Also what do you do in this event ? (imo for a test the simplest would be
just to set a session variable with the current date/time, this is to
make sure the diagnostic is correct).

--
Patrice

"greg" <gr**@no.spam.newsa écrit dans le message de news:
uV**************@TK2MSFTNGP03.phx.gbl...
>>Written in Asp.Net 2.0
The session_start fires on Development server running withing Visual
Studio 2005
and also if access web site via localhost on development machine.

But if copy to development machine event does not fire

I created a barebones webapplication not website and put code in
session_start
will not fire

I have seen another post about this, but no resolution was found.



Feb 12 '08 #4

P: n/a
For now you are just testing that you don't see an exception that is raised
in this event.

What if you set a session variable in this event as well as in the page you
are hitting (another one plus display the one you set in session_start).
Also do the same in other events (for example create an application variable
in session_end, another one in Applicatino_Start etc... and use
session.abandon to trigger this event).

This is to check that :
- session variables are working fine (as well as application variables)
- wether other events (and perhaps session_end) are working

From there we should be able to check sucessively if this is a problem with
sessions, with the global.asax not being taken into account or just with
this event.

--
Patrice

"greg" <gr**@no.spam.newsa écrit dans le message de news:
ed*************@TK2MSFTNGP06.phx.gbl...
Yes, it is an application
And sessionstate is enabled.

I resorted to throwing an exception in the session_state
nothing happens on production server

In fact we have two production servers that do exactly the same thing
but not my development server
"Patrice" <http://www.chez.com/scribe/wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>And the other post said ? Have you checked in the IIS "Home directory"
tab, "Application settings" section that the application is created (that
is the button is "Remove" instead of "Create") and that session state is
enabled for this application ("configuration" button, "Options" tab).

Also what do you do in this event ? (imo for a test the simplest would be
just to set a session variable with the current date/time, this is to
make sure the diagnostic is correct).

--
Patrice

"greg" <gr**@no.spam.newsa écrit dans le message de news:
uV**************@TK2MSFTNGP03.phx.gbl...
>>Written in Asp.Net 2.0
The session_start fires on Development server running withing Visual
Studio 2005
and also if access web site via localhost on development machine.

But if copy to development machine event does not fire

I created a barebones webapplication not website and put code in
session_start
will not fire

I have seen another post about this, but no resolution was found.



Feb 13 '08 #5

P: n/a
I set a session variable in the session_start

If the form_load of the default page I send an email if I find the session
variable
and also send one if I don't get it

I copied the web site to another production server and it works on that one

So I have two webservers where the session_start is not firing
My development server still works

"Patrice" <http://www.chez.com/scribe/wrote in message
news:uT**************@TK2MSFTNGP06.phx.gbl...
For now you are just testing that you don't see an exception that is
raised in this event.

What if you set a session variable in this event as well as in the page
you are hitting (another one plus display the one you set in
session_start).
Also do the same in other events (for example create an application
variable in session_end, another one in Applicatino_Start etc... and use
session.abandon to trigger this event).

This is to check that :
- session variables are working fine (as well as application variables)
- wether other events (and perhaps session_end) are working

From there we should be able to check sucessively if this is a problem
with sessions, with the global.asax not being taken into account or just
with this event.

--
Patrice

"greg" <gr**@no.spam.newsa écrit dans le message de news:
ed*************@TK2MSFTNGP06.phx.gbl...
>Yes, it is an application
And sessionstate is enabled.

I resorted to throwing an exception in the session_state
nothing happens on production server

In fact we have two production servers that do exactly the same thing
but not my development server
"Patrice" <http://www.chez.com/scribe/wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>>And the other post said ? Have you checked in the IIS "Home directory"
tab, "Application settings" section that the application is created
(that is the button is "Remove" instead of "Create") and that session
state is enabled for this application ("configuration" button, "Options"
tab).

Also what do you do in this event ? (imo for a test the simplest would
be just to set a session variable with the current date/time, this is to
make sure the diagnostic is correct).

--
Patrice

"greg" <gr**@no.spam.newsa écrit dans le message de news:
uV**************@TK2MSFTNGP03.phx.gbl...
Written in Asp.Net 2.0
The session_start fires on Development server running withing Visual
Studio 2005
and also if access web site via localhost on development machine.

But if copy to development machine event does not fire

I created a barebones webapplication not website and put code in
session_start
will not fire

I have seen another post about this, but no resolution was found.





Feb 13 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.