473,320 Members | 1,896 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,320 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 1288

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

Similar topics

0
by: djluker | last post by:
Does anyone know of a way to implement cookieless sessions in ASP.net by tacking on the session ID to the querystring, rather than setting cookieless="true" in the web.config file? I see that some...
3
by: Scott | last post by:
Hello, we are having problems displaying non-aspx files (images, style sheets) since we have upgraded to the 1.1 framework when using a cookieless session (sessionID in the url). Check out...
2
by: Tom Pester | last post by:
I experimented/researched cookieless sessions and tried it on my website. I expected the switch to cookieless sessions to be transparent but this isn' t the case at all: 1) Forms based...
2
by: Steve Franks | last post by:
According to the docs you tell ASP.NET to use cookieless sessions by setting a value in the config.web file. However, what if I wanted to determine at run time whether or not I wanted to use...
10
by: Anthony Williams | last post by:
Hi gang, This one looks like a bug :o( As you may or may not know, setting session management in web.config to use cookieless sessions causes the ASP.NET runtime to munge a session ID into...
2
by: Neil | last post by:
When switching my web application to use cookieless session state I get unpredicatable behaviour with images in my application, sometimes they show up other times they don't. It 'appears' that if all...
4
by: Bernie Raffe | last post by:
When I change the 'cookieless' flag in the WebConfig file to true, everything works fine on my local PC, but the images fail to appear when using the remote server. I specify my images...
0
by: mfr | last post by:
My website uses a TreeView control, linked to the web.sitemap for navigation. I'm also using cookieless Sessions. Even though I'm storing relative paths in my Sitemap, the tree view is...
0
by: Tomasz J | last post by:
Hello developers, My custom control allows for specifying paths to images it uses. In those paths I want to be able to use the "~" app root operator, so my app works correctly with virtual...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.