473,385 Members | 1,587 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,385 software developers and data experts.

cookies across virtual directories

Assume you have two virtual directories on the same web server and in the
same logical web site. One is at www.mywebsite.com/v1/ and the other is at
www.mywebsite.com/v2/. If I create a cookie in v1, is that cookie
accessible from v2? My hope is the answer is yes. Also, would the type of
cookie (file versus session based) impact this?

Thanks in advance.

Mark
Jan 16 '07 #1
2 1596
set the cookie Domain to a common root for both sites.

-- bruce (sqlwork.com)

Mark wrote:
Assume you have two virtual directories on the same web server and in the
same logical web site. One is at www.mywebsite.com/v1/ and the other is at
www.mywebsite.com/v2/. If I create a cookie in v1, is that cookie
accessible from v2? My hope is the answer is yes. Also, would the type of
cookie (file versus session based) impact this?

Thanks in advance.

Mark

Jan 16 '07 #2
Thanks. Your reply suggests that this is not default behavior? Just
confirming.

Thanks again.

Mark

"bruce barker" <no****@nospam.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
set the cookie Domain to a common root for both sites.

-- bruce (sqlwork.com)

Mark wrote:
>Assume you have two virtual directories on the same web server and in the
same logical web site. One is at www.mywebsite.com/v1/ and the other is
at www.mywebsite.com/v2/. If I create a cookie in v1, is that cookie
accessible from v2? My hope is the answer is yes. Also, would the type
of cookie (file versus session based) impact this?

Thanks in advance.

Mark

Jan 16 '07 #3

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

Similar topics

0
by: yukon | last post by:
Hi there the next is my platform IIS5 windows 2000 asp vbscript My working area has the next virtual directoy: testAc (corrective ambient) testAe (evolutionary ambient)
7
by: George Hester | last post by:
In one Application (2) the client is redirected to a Logon ASP in a different Application (1). A Session Variable is made in Application 2 which needs to be recognized in Application 1. Can I do...
3
by: pleaseHelp | last post by:
To better manage our secure site we just separated the registration and checkout sections of our web into separate virtual directories. These new virtual directories are on the same server as the...
2
by: Jeffry van de Vuurst | last post by:
Hi, (sorry for the crosspost, I wasn't sure which was the best place to put this). I was just thinking about something and wondered if any of you has some ideas about this. I'm using the...
4
by: Michelle | last post by:
I have a website with 6 virtual directories under it who dont "see" the bin/ directory in the root. If I create a /bin directory in each virtual directory and then copy my dll's in there, it...
1
by: Paul Hodgson | last post by:
Is there any easy way to have .ascx controls used by pages in different virtual directories? My situation is that I have some pages that need to be accessed using SSL - so I've put these pages...
12
by: Patxi | last post by:
This is the first time I try to use cookies, and despite of reading some tutotials, I'm have real trouble to make it work correctly. My cookie reading code is in Master Page. When I click on a...
1
by: Richard Payne | last post by:
Hi I'm having a problem with cookies in a virtual directory, A cookie is created by an ASP application in the root folder i.e. http://xxx.yyy.com I'm unable to read this cookie in a virtual...
2
by: Angelo Cook | last post by:
how do you prevent the publishing of virtual directories in VS 2005. I have been using VS2003 and developing websites for years. I have been using virtual directories for images, icons, styles...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.