Cookie.expires problem

Results 1 to 2 of 2

Thread: Cookie.expires problem

  1. #1
    ASPGreg Guest

    Default Cookie.expires problem

    Hey all,<BR><BR>I&#039m trying to dynamically set the expires value for <BR>a cookie. But this code:<BR><BR>myDate = DateAdd("n", 20, now)<BR>response.cookies("mycookie").expires = #myDate#<BR><BR>causes an error, it doesn&#039t like seeing a variable <BR>instead of a date value. Is there any way around <BR>this???<BR><BR>thanks,<BR><BR>ASPGreg

  2. #2
    Join Date
    Dec 1969

    Default RE: Cookie.expires problem

    You don&#039t need to wrap the variable in # symbols.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts