473,699 Members | 2,386 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Clients Losing Session

I would appreciate it if anybody can help with a issue I am having in an
ASP.NET application that is timing out before a process has been completed.

The scenario
ASP.NET application under IIS 5 runs a crystal report (which has a lot of
complex formatting) and returns over 6,000 pages. The time to export this
report to PDF using Crystal Reports Directly on the server is 83 minutes.
But when the export to PDF is done through the Web Application at exactly 60
minutes the session terminates. The web application returns the user to the
login page (using custom authentication) logged out. In an older version of
this web application the same report at exactly 60 minutes returns a “Page
Not Found” Error or “Server Application Not Available”. This version was not
using any Authentication. I need to increase the time to about 90 minutes or
later so the user will be able to get the completed PDF file.

Details
IIS has the connection timeout at 900 seconds (or 15 minutes) and ASP.NET
session timeout to 20 minutes. Both the Web.Config and the Machine.Config has
the session timeout at 20 minutes.
But as I understand this, these values are used only when the session /
application has been idle for this amount of time. There has to be another
setting that controls the amount of time the user can stay logged into a
given session or the amount of time a user can stay connected to the server
(For 60 minutes as demonstrated by the behavior).
I’m not changing any of the session properties in code.
There are no error log messages.
In addition to this when the session terminates for the user. If I monitor
the ASP.NET Worker Process thread that is performing the export it continues
to run until the export has been completed.
Web.Config
<sessionState mode="InProc" stateConnection String="tcpip=1 27.0.0.1:42424"
sqlConnectionSt ring="data source=127.0.0. 1;Trusted_Conne ction=yes"
cookieless="fal se" timeout="20"/>

Machine.Config
<processModel enable="true" timeout="Infini te" idleTimeout="In finite"
shutdownTimeout ="0:00:05" requestLimit="I nfinite" requestQueueLim it="5000"
restartQueueLim it="10" memoryLimit="60 " webGarden="fals e"
cpuMask="0xffff ffff" userName="SYSTE M" password="AutoG enerate"
logLevel="Error s" clientConnected Check="0:00:05"
comAuthenticati onLevel="Connec t" comImpersonatio nLevel="Imperso nate"
responseDeadloc kInterval="00:0 3:00" maxWorkerThread s="20" maxIoThreads="2 0"/>

I’ve looked everywhere I can think of for this timeout configuration. Can
somebody please help with an idea of where else to look for the timeout
setting.or what I can do in code to prevent the session from terminating
before the process has terminated.
Thank You for your help ahead of time.

Nov 19 '05 #1
4 2146
the browser will also timeout. you can not control this. your approach is
wrong. you should start a background thread (probably a pool) to build the
report, then have the page poll for the results.

-- bruce (sqlwork.com)
"JIsenstadt " <JI********@dis cussions.micros oft.com> wrote in message
news:9E******** *************** ***********@mic rosoft.com...
| I would appreciate it if anybody can help with a issue I am having in an
| ASP.NET application that is timing out before a process has been
completed.
|
| The scenario
| ASP.NET application under IIS 5 runs a crystal report (which has a lot of
| complex formatting) and returns over 6,000 pages. The time to export this
| report to PDF using Crystal Reports Directly on the server is 83 minutes.
| But when the export to PDF is done through the Web Application at exactly
60
| minutes the session terminates. The web application returns the user to
the
| login page (using custom authentication) logged out. In an older version
of
| this web application the same report at exactly 60 minutes returns a "Page
| Not Found" Error or "Server Application Not Available". This version was
not
| using any Authentication. I need to increase the time to about 90 minutes
or
| later so the user will be able to get the completed PDF file.
|
| Details
| IIS has the connection timeout at 900 seconds (or 15 minutes) and ASP.NET
| session timeout to 20 minutes. Both the Web.Config and the Machine.Config
has
| the session timeout at 20 minutes.
| But as I understand this, these values are used only when the session /
| application has been idle for this amount of time. There has to be
another
| setting that controls the amount of time the user can stay logged into a
| given session or the amount of time a user can stay connected to the
server
| (For 60 minutes as demonstrated by the behavior).
| I'm not changing any of the session properties in code.
| There are no error log messages.
| In addition to this when the session terminates for the user. If I
monitor
| the ASP.NET Worker Process thread that is performing the export it
continues
| to run until the export has been completed.
|
|
| Web.Config
| <sessionState mode="InProc" stateConnection String="tcpip=1 27.0.0.1:42424"
| sqlConnectionSt ring="data source=127.0.0. 1;Trusted_Conne ction=yes"
| cookieless="fal se" timeout="20"/>
|
| Machine.Config
| <processModel enable="true" timeout="Infini te" idleTimeout="In finite"
| shutdownTimeout ="0:00:05" requestLimit="I nfinite" requestQueueLim it="5000"
| restartQueueLim it="10" memoryLimit="60 " webGarden="fals e"
| cpuMask="0xffff ffff" userName="SYSTE M" password="AutoG enerate"
| logLevel="Error s" clientConnected Check="0:00:05"
| comAuthenticati onLevel="Connec t" comImpersonatio nLevel="Imperso nate"
| responseDeadloc kInterval="00:0 3:00" maxWorkerThread s="20"
maxIoThreads="2 0"/>
|
| I've looked everywhere I can think of for this timeout configuration. Can
| somebody please help with an idea of where else to look for the timeout
| setting.or what I can do in code to prevent the session from terminating
| before the process has terminated.
| Thank You for your help ahead of time.
|
Nov 19 '05 #2
Thank You for your quick replay
This is another argument to get my boss to re-write this application.

"bruce barker" wrote:
the browser will also timeout. you can not control this. your approach is
wrong. you should start a background thread (probably a pool) to build the
report, then have the page poll for the results.

-- bruce (sqlwork.com)
"JIsenstadt " <JI********@dis cussions.micros oft.com> wrote in message
news:9E******** *************** ***********@mic rosoft.com...
| I would appreciate it if anybody can help with a issue I am having in an
| ASP.NET application that is timing out before a process has been
completed.
|
| The scenario
| ASP.NET application under IIS 5 runs a crystal report (which has a lot of
| complex formatting) and returns over 6,000 pages. The time to export this
| report to PDF using Crystal Reports Directly on the server is 83 minutes.
| But when the export to PDF is done through the Web Application at exactly
60
| minutes the session terminates. The web application returns the user to
the
| login page (using custom authentication) logged out. In an older version
of
| this web application the same report at exactly 60 minutes returns a "Page
| Not Found" Error or "Server Application Not Available". This version was
not
| using any Authentication. I need to increase the time to about 90 minutes
or
| later so the user will be able to get the completed PDF file.
|
| Details
| IIS has the connection timeout at 900 seconds (or 15 minutes) and ASP.NET
| session timeout to 20 minutes. Both the Web.Config and the Machine.Config
has
| the session timeout at 20 minutes.
| But as I understand this, these values are used only when the session /
| application has been idle for this amount of time. There has to be
another
| setting that controls the amount of time the user can stay logged into a
| given session or the amount of time a user can stay connected to the
server
| (For 60 minutes as demonstrated by the behavior).
| I'm not changing any of the session properties in code.
| There are no error log messages.
| In addition to this when the session terminates for the user. If I
monitor
| the ASP.NET Worker Process thread that is performing the export it
continues
| to run until the export has been completed.
|
|
| Web.Config
| <sessionState mode="InProc" stateConnection String="tcpip=1 27.0.0.1:42424"
| sqlConnectionSt ring="data source=127.0.0. 1;Trusted_Conne ction=yes"
| cookieless="fal se" timeout="20"/>
|
| Machine.Config
| <processModel enable="true" timeout="Infini te" idleTimeout="In finite"
| shutdownTimeout ="0:00:05" requestLimit="I nfinite" requestQueueLim it="5000"
| restartQueueLim it="10" memoryLimit="60 " webGarden="fals e"
| cpuMask="0xffff ffff" userName="SYSTE M" password="AutoG enerate"
| logLevel="Error s" clientConnected Check="0:00:05"
| comAuthenticati onLevel="Connec t" comImpersonatio nLevel="Imperso nate"
| responseDeadloc kInterval="00:0 3:00" maxWorkerThread s="20"
maxIoThreads="2 0"/>
|
| I've looked everywhere I can think of for this timeout configuration. Can
| somebody please help with an idea of where else to look for the timeout
| setting.or what I can do in code to prevent the session from terminating
| before the process has terminated.
| Thank You for your help ahead of time.
|

Nov 19 '05 #3

Hi.
Umm...If I had an "old fashioned" modem connection why in the worl
would I want to wait for an hour online to get that report and pay m
phone company zillions of euros? If there's absolutely no othe
alternative, I understand. But are you sure that you have considere
other alternatives too to generate that report?
Is it a -must- that it must be generated on the fly? Why couldn't it b
generated before hand so that it could be downloadable to your client
requiring that report? If it has to be generated on the fly because o
time bound criteria, you've lost the battle already 'cause it runs no
for an hour. Because of that it will never contain accurate data pe
minute or so...

I would do this so, that I'd generate a background task for repor
generating (you don't need to invent the wheel again, there's *a lot
of alternatives with this, for example windows scheduling). After th
task has completed, the report would be transferred to such a plac
where it can be downloaded. And then there could be an aspx-page whic
creates dynamically an list of links, which point to your reports. Thu
I had an setup that doesn't need manual intervention, nor manua
updating links pointing to reports :
-
tomBon
-----------------------------------------------------------------------
Posted via http://www.codecomments.co
-----------------------------------------------------------------------

Nov 19 '05 #4
Hello mister,

What tool you use for monitor the the ASP.NET Worker Process thread ? Can I
download it ?

Thanks and greetings
--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net

Apr 9 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
7790
by: vivek | last post by:
Do any of you guys have any idea what might be the reason for losing session variables, i was working on a page where i had to stroe a array in a session(trust me that was the only 'way' i could imagine doing it), and i am losing the session variable, its just returning empty values...does any one has any ideas?
1
2780
by: Scott Lyon | last post by:
I'm maintaining (read: I didn't write it, nor do I have the time to spend to rewrite it) an application that is suddenly giving me grief. The reason I say suddenly, is because we're in the process of transitioning the server on which it runs from Microsoft Windows 2000 Server, to 2003 server (going from IIS 5 to IIS 6). This problem hasn't really occurred on the 2000 server machine, but it's happening MUCH more on the new 2003 box (not...
4
2165
by: Stephen | last post by:
I have a .NET (1.1 framework) application that is losing a session variable on only a few PC's. The main page is loading up in a frame in a Portal application. On the Page_Load it stores an object with the user id and password into the session. The web page includes a set of links. When the user clicks on a link, another page within this application is opened in a new window. On the Page_Load of this second page, I am retrieving...
4
2403
by: Keith-Earl | last post by:
I have been writing ASP.NET apps since the RTM build and have never seen this. I built a simple app that uses session variables on my DEV laptop. All runs well. I have a simple toggle routine that checks the status of a Session variable. I keep losing the value of the variable. When I trace the page it is there, but it is gone next postback. Also, I use three tier objects and store my DataManager object in a session variable. It is...
5
5280
by: fbwhite | last post by:
I know this issue has been brought up many times, but I have tried many of the solutions to no avail. I wanted to give my specific case to see if someone could be of any help. We are using the sessionstate inproc mode and users are randomly losing their session. I do not believe it is happening across all users at one time. It seems to happen to different users at different times, but I am only going off heresay. The aspnet worker...
9
2542
by: Adrian Parker | last post by:
We have a website that works everywhere but on a few PCs on this one site.. Asp.Net 1.1 Server = Windows 2003 Client = XP In the web.config we use - cookieless="false" in the browser settings they have "Always allow session cookies" set to true When the browser connects to the website the first page sets a session variable called "user_ref" to something and then calls another page. If on
0
1393
by: Jimmy Reds | last post by:
Hi, Sorry if this appears twice but I post through Google Groups and it had a funny 5 minutes and didn't appear to post this message the first time. I am setting session variables on a page then doing a header/location redirect to a second page however I am losing one of my session variables. Not all of them, just one.
2
1558
by: Jimmy Reds | last post by:
Hi, I am setting session variables on a page then doing a header/location redirect to a second page however I am losing one of my session variables. Not all of them, just one. Here are some details/comments: I am doing a session_start() on ALL of my pages, right at the top of each page
0
1812
by: jason.friesen | last post by:
Hi Folks I have a custom CMS built in classic ASP that is losing session variables. To wit, I can create a situation where my 'show all the set SVs' test page shows a different set of SVs on each refresh of the browser. My test page goes a little something like this: <h1>Checking Session Variables</h1> <h2>Checking what session variables are set.</h2> <p>
0
8685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8613
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9172
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9032
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7745
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6532
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4374
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.