473,486 Members | 2,424 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

problem with write cookie

top
when i try to write cookie on ASP page with the line like this
<% Response.Cookie ("username")="test1" %>
i get the message: object doesn't support this property ormethod: 'cookie'
i use windows 2000 server
any suggestion?
thank you
Jan 25 '06 #1
6 1779
well, i am on server 2000 as well

and mine is basically the same
response.cookies("username") = username where username is a variable, but I
don't put the "" around it on the end.
maybe trying without that.

"top" <to****@netvision.co.il> wrote in message
news:ud**************@TK2MSFTNGP15.phx.gbl...
when i try to write cookie on ASP page with the line like this
<% Response.Cookie ("username")="test1" %>
i get the message: object doesn't support this property ormethod: 'cookie'
i use windows 2000 server
any suggestion?
thank you

Jan 25 '06 #2
top wrote on 25 jan 2006 in microsoft.public.inetserver.asp.general:
when i try to write cookie on ASP page with the line like this
<% Response.Cookie ("username")="test1" %>
i get the message: object doesn't support this property ormethod:
'cookie' i use windows 2000 server
any suggestion?


What serverside langiuage are you using?

If it is Jscript, that is case sensitive, so try:

<% Response.cookie ("username")="test1" %>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jan 25 '06 #3
top wrote:
when i try to write cookie on ASP page with the line like this
<% Response.Cookie ("username")="test1" %>
i get the message: object doesn't support this property ormethod:
'cookie' i use windows 2000 server
any suggestion?


Only that you should spell "Cookies" correctly. It is plural.
http://msdn.microsoft.com/library/en...80191a462b.asp

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jan 25 '06 #4
top
indeed , now seen that is write something, i get a messageon the IE about cookies, BUT i didn't see a cookie file on the directory of cookies where there are the cookies from another sites, should i define something on the server?
thank you again

"Dave Anderson" <GT**********@spammotel.com> wrote in message news:un**************@TK2MSFTNGP09.phx.gbl...
top wrote:
when i try to write cookie on ASP page with the line like this
<% Response.Cookie ("username")="test1" %>
i get the message: object doesn't support this property ormethod:
'cookie' i use windows 2000 server
any suggestion?


Only that you should spell "Cookies" correctly. It is plural.
http://msdn.microsoft.com/library/en...80191a462b.asp



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.

Jan 29 '06 #5
top wrote on 29 jan 2006 in microsoft.public.inetserver.asp.general:
indeed , now seen that is write something, i get a messageon the IE


please do not change the subject of a thread, but start a new one.

------=_N extPart_000_0011_01C624CA.392A3920
<!DOC TYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;


please do not use html on usenet.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jan 29 '06 #6
Chi
SETTINGS THE COOKIE......
Response.Cookies("uc").Value = txtUsername.Text

READING THE COOKIE....
If Not Request.Cookies("uc") Is Nothing Then
txtUsername.Text = Server.HtmlEncode(Request.Cookies("uc").Value)
End If

"top" <to****@netvision.co.il> wrote in message
news:ud**************@TK2MSFTNGP15.phx.gbl...
when i try to write cookie on ASP page with the line like this
<% Response.Cookie ("username")="test1" %>
i get the message: object doesn't support this property ormethod: 'cookie'
i use windows 2000 server
any suggestion?
thank you

Feb 1 '06 #7

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

Similar topics

4
2334
by: Eifion | last post by:
I've noticed a strange problem with setting cookies in ASP when the cookie name you're setting exists in the querystring. The company I work for has many partner sites who link to our site like...
1
2218
by: Tony Archer | last post by:
(Forgive the dupicate post, I had left out the OS Version out of the prior post.) Gentlemen, your urgent help is needed in solving a STRANGE problem. I have two servers a dev box, and a...
4
2050
by: Derick Bailey | last post by:
I have a development website running on Win2K Server, using ASP 3.0. I'm using IE6 (all updates added). I have a cookie that is set on a login page, which is an Encrypted password:...
2
2661
by: Ian | last post by:
I have a problem I hope someone can point out where I am going wrong. I need to store a date/time in a cookie ( ie the date a visitor last visited ) However the date format changes to US, despite...
2
1301
by: xarrisx | last post by:
Here is my problem! I have page1.asp in webserver1 with this code ----------Page1 in webserver1 <script src=webserver2/page2.asp > </script> <script> document.write("<iframe...
2
2985
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...
4
2280
by: kieran5405 | last post by:
Hi, I have an Intranet page that has an image that changes each day, but the image is caching and not updating until the user manually does a page refresh. I want the page to refresh itself but...
1
5955
by: Michal A. Valasek | last post by:
Hello, I have problem deleting cookies and cookies values (using framework version 1.1 on W2003). When I try to remove entire cookie, by calling Response.Cookies.Remove("Test"), nothing...
7
10193
by: cmrchs | last post by:
Hi, In Windows Vista: where does asp.net write its cookies? I use HttpCookie objCookie = new HttpCookie("nameCookie"); in Win2000 (and later) they used to be in C:\Documents and...
8
2041
by: LayneMitch via WebmasterKB.com | last post by:
I'm supposed to develop a page that asks info as form values and when you hit "submit" it takes you to a page that reads the values you entered into the first page and displays those values in a...
0
7100
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
6964
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
7126
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7175
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...
1
6842
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7330
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5434
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
262
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.