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

Explicit path of cookies

raj
can i set explicit path for cookies in asp.net

by default we set path="/" which is default path of cookies folder,

Thanks in advance

Nov 20 '05 #1
2 3145
Is HttpCookie.Path what you're looking for?

-Brock
DevelopMentor
http://staff.develop.com/ballen
can i set explicit path for cookies in asp.net

by default we set path="/" which is default path of cookies folder,

Thanks in advance

Nov 20 '05 #2
the path set for a cookie is not the folder to store the cookie, but rather
tell the browser to which web sites to tie the cookie. you can tie a cookie.

say you have

mysite.com/dir1
mysite.com/dir2

you can tie the cookie to mysite.com, so its shared between site, a specify
a path and each site can have its own cookie.

-- bruce (sqlwork.com)
"raj" <Ra***********@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
can i set explicit path for cookies in asp.net

by default we set path="/" which is default path of cookies folder,

Thanks in advance

Nov 20 '05 #3

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

Similar topics

2
by: Syed Ghayas | last post by:
Hi, I've been having problem writing a cookie. Everything goes ok but when I supply the .Path property to "/" It just write the cookie when there is no cookie present, but when I try to update the...
1
by: UncleStoner | last post by:
Using Javascript, you can call document.cookie to get a list of all the cookies that will be sent to the path of the current document. Is their a way to get all the cookies associated with the...
2
by: Alex Sedow | last post by:
Why explicit conversion from SomeType* to IntPtr is not ambiguous (according to standart)? Example: // System.IntPtr class IntPtr { public static explicit System.IntPtr (int); public...
8
by: CDARS | last post by:
Hi all, I have a confusing question on ASP.NET cookies usage: 1> Response.Cookies("test").value = Now 2> Response.Write(Request.Cookies("test").value) 3> 4> Response.write("<hr>") 5>...
0
by: Boyan | last post by:
I set the Path Property of cookie to some value like "/Appcation1/folder1". After reloading the page and read the cookie from Request.Cookies, the path value turns out to be "/". I found no matter...
1
by: Olivier Matrot | last post by:
Hello, I'm trying to use explicit localization expression to access global resources from an .inc file that's included into several ASPX pages. I may be wrong in my expression, bu accessing...
0
by: svilst | last post by:
How can I change the path of the cookie 'ASP.NET_SessionId'? The path is "/" and I'd like to set the path to particular virtual directory. The following approach does not work: protected void...
5
by: CDMAPoster | last post by:
I have changed how I get the shell path for Acrobat Reader based on code posted by John deKrafft. Does anyone see any problems with this code running on various Windows OS's? '--Begin Module...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
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?
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...

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.