Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple Cookie test not working (response.cookies)

Status
Not open for further replies.

UncleScooby

Programmer
Jun 1, 2001
30
GB
Hi,

A very simple cookie test to read an existing cookie and set
a new cookie. Is there some kind of privelage or something else I need to do to get the set (response.cookies) working as at the moment running this code I get the 'Sorry your request could not be completed...' message.
TIA - ps - Im running firefox with cookies enabled.



<% Option Explicit%>

<%

dim fname
fname=Request.Cookies("Client")
response.write("acc=" & fname)

dim newAcc
newAcc = "66666V"
Response.Cookies("ClientNew") = newAcc

%>
 
For starters try

response.write "acc=" & fname

Also try

response.write request.cookies("Client")

as a debugging step to check that the value is there.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top