Link to home
Start Free TrialLog in
Avatar of Vincent Stack
Vincent StackFlag for Qatar

asked on

Why does my session die when I delete a folder?

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?
Avatar of esolve
esolve
Flag of South Africa image

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.
Avatar of Vincent Stack

ASKER

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.
Thanks esolve, I learned a little but no solution there for me.
ASKER CERTIFIED SOLUTION
Avatar of Bane83
Bane83
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.