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

About Cookie Info,please help me!!

Hi,all:
I want to ouput the cookie to a file form computer a,then I input the
cookie infor form the file to computer b,but the cookie didn't to work in
computer B,why?
thanks!!!!!!!

come form china!
Nov 16 '05 #1
1 967
Ricky,

I assume you are creating the cookie using the HttpResponse, such as:
HttpCookie cook = new HttpCookie("myCookie");
cook.Value = "just a test";
cook.Expires = System.DateTime.Now.AddDays(7);
Response.Cookies.Add(cook);
and then loading it back from HttpRequest with code such as:
HttpCookie cook = Request.Cookies["myCookie"];

If this is not working, you need to ensure that cookies are enabled on the
client browser. Use Tools -> Internet Options and check settings on the
Privacy tab.

Hope this helps.
Chris.

P.S. Where in China do you live? I have visited Beijing and Shanghai and
liked both cities very much. I am from the south of England myself.

"Ricky Liu" wrote:
Hi,all:
I want to ouput the cookie to a file form computer a,then I input the
cookie infor form the file to computer b,but the cookie didn't to work in
computer B,why?
thanks!!!!!!!

come form china!

Nov 16 '05 #2

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

Similar topics

16
by: Sims | last post by:
Hi, I am using setcookies to store one single value. But i was reading http://za2.php.net/manual/en/function.setcookie.php and i noticed that a cookie might not be accepted yet it might return...
1
by: yabba | last post by:
How can I differentiate 2 windows on the same machine opened to the same .asp session??? Client-side Javascript is fine and I don't need to worry about anyone defeating it. I info as to *HOW*...
1
by: Jim | last post by:
I've posted this a couple of times, no luck so far. Any info would be greatly appreciated. The tooltips are very useful, but this oddity is very annoying, particularly because I'm visually...
0
by: Bennett F. Dill | last post by:
Thanks for reading. I'm having problems with cookies from asp to asp.net and back! It seems like I can set a cookie in asp.net fine, and alter it at will, as soon as asp touches it, asp.net...
4
by: Ivan Demkovitch | last post by:
Hi! From what I understand cookies could be persisted or in-memory. I need to set second one... This code: Response.Cookies.Value = Server.UrlEncode(phpC); Response.Cookies.Path = "/";...
3
by: Amil | last post by:
Please don't repond to this if you are guessing or just don't know the answer. I'm trying to login to a backend system running Java/Tomcat. I create a HttpWebRequest with the login data and do...
2
by: Harley | last post by:
Hello, I was VERY blessed with a Christmas gift of visual studio .net from a man I hardly know who had heard of my plans of software developement. So I am probably the only person in the world who...
2
by: junOnline | last post by:
Hi, I am developing an asp.net 2.0 application using visual studio 2005 on my computer and I am getting very inconsistent results when I test on my computer versus from other computers. The...
2
by: Paul | last post by:
Hi, I have experience in Java and C++ but I am rather new to C# and just started learning it. I am using Visual C# 2005 Express Edition and I found that there is a file called "AssemblyInfo.cs",...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
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
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
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...

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.