Re: session variables being lost

Tech-Archive recommends: Fix windows errors by optimizing your registry



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.



.



Relevant Pages

  • Re: form to email document
    ... >> append the Session ID for that user Session to the file name. ... >> name uploaded.This can come from a simple text file or a database. ... >>> I was hoping for something like the procedure used to upload a form, ...
    (microsoft.public.frontpage.programming)
  • Re: Homegrown synchronization
    ... if you can count on the upload completing each time the user ... counts for that session. ... server, a copy of that update file is put into an archive folder. ... I'm not suggesting that at all. ...
    (microsoft.public.access.replication)
  • Re: I found an even easier way to crash CMUCL 19c/19f on FreeBSD 7.1
    ... I seem to remember you were using an UNIX shell account. ... new e-mail to your own computer at the start of the session, ... The version of Emacs here is horribly broken. ... Hmm, when I upload new versions of my source files, I keep around ...
    (comp.lang.lisp)
  • Re: I found an even easier way to crash CMUCL 19c/19f on FreeBSD 7.1
    ... I seem to remember you were using an UNIX shell account. ... new e-mail to your own computer at the start of the session, ... The version of Emacs here is horribly broken. ... Hmm, when I upload new versions of my source files, I keep around ...
    (comp.lang.lisp)
  • Re: form to email document
    ... > append the Session ID for that user Session to the file name. ... > name uploaded.This can come from a simple text file or a database. ... >> I was hoping for something like the procedure used to upload a form, ...
    (microsoft.public.frontpage.programming)