473,396 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Directory.Move = Lost Session

I'm porting an old Coldfusion based content and asset management system to
ASP.NET (and oh, how good it feels to write REAL code again - was a C++ hack
for 10 years, started doing coldfusion about 4 years ago - moving to .NET at
the moment - C# rocks a fat one - it's real code :-)).

Anyway, I've hit a bit of a problem which I don't quite know how to solve.
Part of the system I'm porting lets users view/rename/delete/upload
"assets" - these can be gif's, jpeg's, doc's, pdf's or whatever, and the
interface just presents a "windows-explorer-like" treeview interface showing
the contents of the ~/assets/ directory and it's sub-directories. Anyway, it
is almost working a treat, but the problem comes when I let a user create a
sub-directory, or, rename a sub-directory.

The directory structure of the app is like this:

admin/modules/assetManager/ - holds the interface webforms etc
admin/secure/login/ - holds the authentication form
assets/ holds the physical files themselves and any user created
sub-directories
bin/ obvious what this is for

If a user selects "create folder", the system creates the folder correctly
(inside the assets directory, or whichever sub-directory it was actioned
on), but then the next thing is the user is automatically logged out and
presented with the login credentials form again....

I can see what's happening - for some reason the creation (or rename) of a
directory is forcing the application to restart entirely (perhaps to check
and recompile stuff - I don't know), which in turn causes the session
variables to be cleared and therefore my app thinks the user isn't logged in
and redirects them to the login details webform....

Anyone know why this is happening and how I can resolve it so the user
doesn't have to log back in every time they rename or create a directory ?
It must be pretty common to need this sort of functionality in document or
content management systems surely - and I'm thinking there MUST be a
workaround for this problem, or I'm being extremely dumb!! ;-)

My dev system is WinXP Pro, .NET 1.1 and IIS5 - if this makes any
difference.

As ever, any help greatly appreciated
Cheers
Tony
Nov 17 '05 #1
1 1802
Just noticed something new - I said it's during creation or renaming - I was
wrong with that - it's actually only if I rename a folder that this
behaviour occurs! :-(
"Tony" <reply_to@newsgroup_only.net> wrote in message
news:zW****************@news-binary.blueyonder.co.uk...
I'm porting an old Coldfusion based content and asset management system to
ASP.NET (and oh, how good it feels to write REAL code again - was a C++ hack for 10 years, started doing coldfusion about 4 years ago - moving to .NET at the moment - C# rocks a fat one - it's real code :-)).

Anyway, I've hit a bit of a problem which I don't quite know how to solve.
Part of the system I'm porting lets users view/rename/delete/upload
"assets" - these can be gif's, jpeg's, doc's, pdf's or whatever, and the
interface just presents a "windows-explorer-like" treeview interface showing the contents of the ~/assets/ directory and it's sub-directories. Anyway, it is almost working a treat, but the problem comes when I let a user create a sub-directory, or, rename a sub-directory.

The directory structure of the app is like this:

admin/modules/assetManager/ - holds the interface webforms etc
admin/secure/login/ - holds the authentication form
assets/ holds the physical files themselves and any user created
sub-directories
bin/ obvious what this is for

If a user selects "create folder", the system creates the folder correctly
(inside the assets directory, or whichever sub-directory it was actioned
on), but then the next thing is the user is automatically logged out and
presented with the login credentials form again....

I can see what's happening - for some reason the creation (or rename) of a
directory is forcing the application to restart entirely (perhaps to check
and recompile stuff - I don't know), which in turn causes the session
variables to be cleared and therefore my app thinks the user isn't logged in and redirects them to the login details webform....

Anyone know why this is happening and how I can resolve it so the user
doesn't have to log back in every time they rename or create a directory ?
It must be pretty common to need this sort of functionality in document or
content management systems surely - and I'm thinking there MUST be a
workaround for this problem, or I'm being extremely dumb!! ;-)

My dev system is WinXP Pro, .NET 1.1 and IIS5 - if this makes any
difference.

As ever, any help greatly appreciated
Cheers
Tony

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Hemant Shah | last post by:
Folks, I need to move HOME directory of an instance to another directory. What is the best way of doing it? Is changing password file enough? or dies DB2 store this info in it's own config? ...
0
by: Sty | last post by:
Hi, I have an webapplication, which shows photos in different directory. If I move a directory (or only change its name) the entiry session is lost and I have to login again. Does anyone know...
3
by: Sty | last post by:
Hi, I have a webapplication, which shows images in directories. There are different sub directories and you can change the directory by a pull down list. If I change the name of a directory, the...
8
by: Ron Vecchi | last post by:
I know this has been asked before but I out of all the posts I've read regarding using Directory.Move and then the application restarting itself I have found no answer except that Sessions are...
1
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem...
1
by: jojobar | last post by:
I have noticed that the Directory.Move removes the session as soon as the next Response.Redirect is done. It also appears that .Net framework constantly monitors all the directories below the root...
1
by: Lintie | last post by:
Hi, I have 2 websites. Now I want to run one site as a virtual site of the other in IIS 5 (Win 2000). Like this : Website 1 \--Website 2 (Virtual directory) 1) If I create the virtual...
10
by: Robert | last post by:
I have an app that was originally 1.1, now migrated to 2.0 and have run into some sporadic viewstate errors...usually saying the viewstate is invalid, eventvalidation failed or mac error. My web...
7
by: Erik | last post by:
I have an application that uses sessions variables a lot but one I publish the application on the prod server these variables are lost. The application is written i c# 2.0 and I've set the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.