Solved

Why does my session die when I delete a folder?

Posted on 2008-10-20
6
603 Views
Last Modified: 2012-05-05
In my ASP.2.0 app I have a page that deletes a selected directory.  The delete works fine but it kills the session and sends me back to login.

I've never experienced this before.  The folders reside in a regular directory, not the bin directory or any special directory.

I googled this and one solution says declare sessions as out of proc.  I never tried this but mine need to be InProc since I detect inProc session timeouts and warn users.

Any ideas?
0
Comment
Question by:vstack
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 6

Expert Comment

by:esolve
ID: 22758690
0
 
LVL 10

Expert Comment

by:Bane83
ID: 22759823
Deleting a folder under the root of the application causes the application to be restarted.  Restarting the application causes a session reset as well (for all users).  

If you have control over the hosting server, I would suggest moving this directory out from under the application root if at all possible.  Otherwise, you'll have to find another means of creating your functionality.
0
 

Author Comment

by:vstack
ID: 22760003
Thanks Bane83, if I have to do this, it would really suck since URLs point to folders inside my app.  This must be some sort of bug cause itt doesn't make a lot of sense to move the folders outside.
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

Author Comment

by:vstack
ID: 22760087
Thanks esolve, I learned a little but no solution there for me.
0
 
LVL 10

Accepted Solution

by:
Bane83 earned 500 total points
ID: 22760094
Not a bug at all.  This link (http://blogs.msdn.com/toddca/archive/2005/12/01/499144.aspx) provides an explanation of why it does it.  There also appears to be a potential solution, though I haven't read through it.
0
 

Author Comment

by:vstack
ID: 22761538
Thanks for the info.  There is a solution here that only works if you have access to the server and if you use NTFS.  If not, you are out of luck!  I don't like the Directory Junction solution as it is a brute force method of solving the issue.  To me, this is a bug and if it's not a bug then a real pain in the extremities.

0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question