Discussion:
sessionState mode="StateServer" vs. "InProc"
(too old to reply)
April
2009-01-23 06:47:32 UTC
Permalink
I have a Windows 2000 Server (SP4) with .NET Framework 1.1 (with hotfixes)
installed, along with .NET Framework 2

I have a Delphi .DLL that interfaces with several .aspx files as part of a
member database. Each .aspx file contains categorized properties about
members. The first page is named profile1.aspx, the second page
profile2.aspx and so forth. NEXT and PREVIOUS buttons allow the user to
move back and forth.

For some unknown reason, the session state was being lost as the member/user
clicked the NEXT and PREVIOUS buttons. My web.config file contained the
following lines:

<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;user id=sa;password="
cookieless="false"
timeout="20"
/>

Out of desperation we changed the mode from "InProc" to "StateServer" and
then turned ON the "ASP.NET State Service" from within the Services MMC
snap-in. After making this change, the session state is preserved between
pages.

Might anyone know why session state would always be lost as the user moved
from .aspx to .aspx page?

And 'yes' we do have the Application > App Options > Application
Configuration > Enable Session State ENABLED within the web site's
properties within IIS 5 (with session timeout of 20 minutes).

Thanks.
Egbert Nierop
2009-01-26 15:28:35 UTC
Permalink
Post by April
I have a Windows 2000 Server (SP4) with .NET Framework 1.1 (with hotfixes)
installed, along with .NET Framework 2
I have a Delphi .DLL that interfaces with several .aspx files as part of a
member database. Each .aspx file contains categorized properties about
Might anyone know why session state would always be lost as the user moved
from .aspx to .aspx page?
Yes.
IIS 6 and 7 reset the process after x (depends on setup or config) minutes.

If the process is reset, the session variables get lost.

--
Compatible Session replacement for ASP and ASP+ASP.NET interop
http://www.nieropwebconsult.nl/asp_session_manager.htm
April
2009-01-30 04:42:34 UTC
Permalink
Post by Egbert Nierop
IIS 6 and 7 reset the process after x (depends on setup or config) minutes.
If the process is reset, the session variables get lost.
But I am using IIS5.
Egbert Nierop
2009-01-30 08:13:41 UTC
Permalink
Post by April
Post by Egbert Nierop
IIS 6 and 7 reset the process after x (depends on setup or config) minutes.
If the process is reset, the session variables get lost.
But I am using IIS5.
for instance, if you modify web.Config, the process (aspnet_wp.exe) is reset
as well.

Anyway, ASP.NET is not about 'being on' always, as is the case with IIS5 +
classic ASP, but ASP.NET just gets reset by events.

You take that in mind and adapt your design.

Loading...