HighDots Forums  

How to set a cookie

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss How to set a cookie in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Steve
 
Posts: n/a

Default How to set a cookie - 08-17-2004 , 08:52 PM






Im using vbscript and asp I want to know how i would set a cookie via link I
cant seem to figure it out.

Thanks
Steve



Reply With Quote
  #2  
Old   
Kindler Chase
 
Posts: n/a

Default Re: How to set a cookie - 08-17-2004 , 09:21 PM






Steve wrote:
Quote:
Im using vbscript and asp I want to know how i would set a cookie via
link I cant seem to figure it out.
You need to use 2 pages:

page 1
<a href="page2.asp?action=cookie">give me some cookies</a>

page 2
<%
If Request.QueryString("action") = "cookie" Then
Response.Cookies("myCookie") = "Some Value"
Response.Cookies("myCookie").Expires = Date() + 100
End If
%>

--
kindler chase
http://www.ncubed.com
Grooving with SuperInvoice

news://news.ncubed.com/support
n3 Support Group




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.