Vincent Stack
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?
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?
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.
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.
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.
ASKER
Thanks esolve, I learned a little but no solution there for me.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
http://blogs.msdn.com/david.wang/archive/2005/09/19/Why_do_I_lose_ASP_Session_State_on_IIS6.aspx