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

HttpCookie.Domain

I'm attempting to set the domain for a cookie I'm setting. The domain is not
getting set though. I need to do this because I'm setting the cookie on one
server, but it will be used on another domain. Is using the
HttpCookie.Domain property the way to go? Or is there another way to go
about doing this?
Nov 19 '05 #1
1 2693
Craig,

This may be what you're looking for:

http://msdn.microsoft.com/library/de...plications.asp

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Craig" <Cr***@discussions.microsoft.com> wrote in message
news:01**********************************@microsof t.com...
I'm attempting to set the domain for a cookie I'm setting. The domain is
not
getting set though. I need to do this because I'm setting the cookie on
one
server, but it will be used on another domain. Is using the
HttpCookie.Domain property the way to go? Or is there another way to go
about doing this?

Nov 19 '05 #2

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

Similar topics

1
by: chris | last post by:
I'm struggling with using the HttpCookie object on a code behind. Used in the page works great I'm getting a: Type 'HttpCookie' is not define I've tried adding the namespace to the vb form but no...
1
by: Ivan Demkovitch | last post by:
Hi! System.Net.Cookie class offers greater flexibility for working with Cookies compare to System.Web.HttpCookie. Is there any way to work with cookies thru System.Net.Cookie instead of...
0
by: Chris | last post by:
Just a curiosity: Is it standard practice to UrlEncode and UrlDecode cookie values? I wouldn't have even stumbled across this except I noticed that when I retrieve a cookie that was set with...
1
by: Waqqas Farooq | last post by:
Can I add more than 1 values in a cookie? e.g if i create a httpcookie then the syntax would be like this: Dim myCookie as new HttpCookie("myCookieName") myCookie.Value = "myval1"...
0
by: Nuro de Matos Carvalho | last post by:
Hi all, I'm having a strange problem using cookies, setting values with special characters. Set cookie data: <snipet> string encryptedTicket = FormsAuthentication.Encrypt(authTicket);...
3
by: ulabala | last post by:
I was trying to retrieve the cookie collection and display the domain to which those cookies were written to, but I always see a NULL value for the domain property. Can anyone shed some light?...
2
by: Terry Olsen | last post by:
I don't understand the error i'm getting on this page. Is this a bug or am I doing something wrong? Exception Details: System.InvalidCastException: Unable to cast object of type...
3
by: =?Utf-8?B?Q2h1Y2sgUA==?= | last post by:
What properties on a HttpCookie give invalid information when you read it from the Request object? For example if you run this code, I believe the domain, expires, and HttpOnly do not tell the...
3
by: =?Utf-8?B?UGF1bA==?= | last post by:
Does anyone know if it is possible to change the datatype of a string into an HTTPCookie? I tried CType and it would not let me do it.
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.