471,337 Members | 1,036 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

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)

Cheers

Chris
Nov 19 '05 #1
0 1213

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

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.