468,268 Members | 1,977 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,268 developers. It's quick & easy.

Cookieless Sessions and Absolute Paths

I'm trying to use cookieless sessions in asp.net using the InProc mode (for
various reasons it is not desirable for us to use the other modes if it is
possible to avoid them). My problem revolves around the use of absolute and
relative paths under this mode. Obviously absolute paths break the
sessionId tracking in the url, which in our system relates to the user
logins, causing the users to be logged off immediately. Clearly the simple
solution to this is use relative paths, however I've been thinking about the
use of ~/ in the path to create an artificial root, and on first look this
seems to maintain the sessionId correctly in the url, however it causes all
kinds of problems with the file monitoring, namely

"Invalid file name for monitoring: 'D:\xyzsite\dev\~'. File names for
monitoring must have absolute paths, and no wildcards."

Does anyone have any experience with either the use of tilde (~) in .net, or
on the specific issue of workarounds too absoluet paths and InProc
cookieless sessions.

I should also point out that the whole reason for wanting to maintain
absolute paths rather than using relative is in order to incorporate legacy
code into the system. Changing all links to relative paths would be quite a
job, however simly modifying / to ~/ would be a whole lot simpler ;o)


Nov 19 '05 #1
0 1137

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by djluker | last post: by
3 posts views Thread by Scott | last post: by
2 posts views Thread by Tom Pester | last post: by
2 posts views Thread by Neil | last post: by
4 posts views Thread by Bernie Raffe | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.