PDA

View Full Version : Cookies



firefox
11-25-2004, 03:31 AM
hey, i just got this project to do for a client..im on a chef's site and they have you go to the first page to choose ur country or origin...and when you click on it, it sends a cookie to ur computer..well they want me to beable to make a button or something that would let you click a link or a button that would reset the cookie incase you end up moving and need to see the page in a different country...

please can someone help me find a script or something that would alow me to put up a link or button on the page itself to send it back to the first original page

simonf
11-25-2004, 04:22 AM
Hi Firefox

Try this.. found it on the www

<%response.buffer=true%>
<html><head>
<TITLE>cookiesformforget.asp</TITLE></head>
<body bgcolor="#FFFFFF">
<%
cookiepath="/learn/test"
cookiedomain=".www.activeserverpages.com"
cookiesdie=date-365
Response.Cookies("thatperson").Expires = cookiesdie
Response.Cookies("thatperson").Domain = cookiesdomain
Response.Cookies("thatperson").Path = cookiespath
response.write "I will not remember you"
%>
</body></html>

rgds,Simonf :cool: