Solved

Why does my session die when I delete a folder?

Posted on 2008-10-20
6
598 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
  • 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now