Re: session variables being lost
- From: Paul <Paul@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 2 Oct 2008 11:21:05 -0700
thanks for the additional information, still not sure what is causing it but
I wrote a small sample program and I am able to upload files to the root
directory ok, but when I upload to the bin directory it looses the session
variable, which corresponds to listing c provided. I am not sure what the
CAS policy is, also not quite sure what listing i means?
--
Paul G
Software engineer.
"Juan T. Llibre" wrote:
An application domain will unload (causing loss of session variables.
unless session state is maintained with State Server or SQL Server),
when any one of the following occurs:
a. Machine.Config, Web.Config or Global.asax are modified
b. The bin directory or any of its contents is/are modified
c. The App_Code directory contents changes
d. The number of re-compilations (aspx, ascx or asax) exceeds the limit specified by the
<compilation numRecompilesBeforeAppRestart=/> setting in machine.config or web.config
(by default this is set to 15)
e. The physical path of the virtual directory is modified
f. The CAS policy is modified
g. A web service is restarted
h. (2.0 only) Application Sub-Directories are deleted
i. Any of a number of configurable App Pool recycling reasons occurs
This should cover most scenarios.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Paul" <Paul@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:3F7654CF-D2F6-4790-8239-01CDAE45AF94@xxxxxxxxxxxxxxxx
thanks for the information, wondering if this is something new in vs2005 and
if there is a way to shut it off, were you can upload to any other folder
(other than the bin) without loosing the current session variables?
--
Paul G
Software engineer.
"bruce barker" wrote:
if you upload to any folder other than appdata, then a recycle can be
triggered.
-- bruce (sqlwork.com)
"Paul" wrote:
Hi I have a web application vs2005 and it looks like a condition is causing
session veriables to be lost. This does not seem to be happening too often.
The web application allows uploading and deleting files on the server, but
not in the bin directory. I am not sure if this is related. Any idea what
might be causing this and how to fix it?
Thanks.
--
Paul G
Software engineer.
- Follow-Ups:
- Re: session variables being lost
- From: Hans Kesting
- Re: session variables being lost
- From: Juan T. Llibre
- Re: session variables being lost
- References:
- session variables being lost
- From: Paul
- RE: session variables being lost
- From: bruce barker
- RE: session variables being lost
- From: Paul
- Re: session variables being lost
- From: Juan T. Llibre
- session variables being lost
- Prev by Date: Re: Restart a Service
- Next by Date: Re: Restart a Service
- Previous by thread: Re: session variables being lost
- Next by thread: Re: session variables being lost
- Index(es):
Relevant Pages
|