Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

session_start not firing on production server

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
greg - 12 Feb 2008 16:37 GMT
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.
Patrice - 12 Feb 2008 17:02 GMT
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

> Written in Asp.Net 2.0
> The session_start fires on Development server running withing Visual
[quoted text clipped - 8 lines]
>
> I have seen another post about this, but no resolution was found.
greg - 12 Feb 2008 20:18 GMT
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
> And the other post said ?  Have you checked in the IIS "Home directory"
> tab, "Application settings" section that the application is created (that
[quoted text clipped - 20 lines]
>>
>> I have seen another post about this, but no resolution was found.
George Ter-Saakov - 12 Feb 2008 21:39 GMT
How do you know it's not firing?
May be exception is thrown in the Session_Start code....

George.

> Yes, it is an application
> And sessionstate is enabled.
[quoted text clipped - 28 lines]
>>>
>>> I have seen another post about this, but no resolution was found.
Patrice - 13 Feb 2008 09:04 GMT
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

> Yes, it is an application
> And sessionstate is enabled.
[quoted text clipped - 28 lines]
>>>
>>> I have seen another post about this, but no resolution was found.
greg - 13 Feb 2008 16:56 GMT
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

> For now you are just testing that you don't see an exception that is
> raised in this event.
[quoted text clipped - 50 lines]
>>>>
>>>> I have seen another post about this, but no resolution was found.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.