session_start not firing on production server

G

greg

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.
 
P

Patrice

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).
 
G

greg

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
 
G

George Ter-Saakov

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

George.
 
P

Patrice

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.
 
G

greg

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top