Solved

Why does my session die when I delete a folder?

Posted on 2008-10-20
6
604 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 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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

Ready to get started with anonymous questions?

It's easy! Check out this step-by-step guide for asking an anonymous question on Experts Exchange.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

617 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