Bud,

As you saw, what Lon wrote is incorrect.  Cookie.expires refers to a
cookie named expires, not to the 'expires' property of a cookie.

Cookies are of the form "name=value;expires=expDate;".  You can use
JavaScript to get at the 'expires' property.  Here's a function from
http://developer.netscape.com/ that returns a cookie value, given the
cookie name.  You'd have to modify it to get at the 'expires' property.

function getCookie(Name) {
   var search = Name + "=" 
   if (document.cookie.length > 0) { // if there are any cookies
       offset = document.cookie.indexOf(search)
       if (offset != -1) { // if cookie exists
          offset += search.length
          // set index of beginning of value
         end = document.cookie.indexOf(";", offset)
          // set index of end of cookie value
         if (end == -1)
             end = document.cookie.length
         return unescape(document.cookie.substring(offset, end))
      }
    }
}

-David

On Fri, 14 Apr 2000 23:14:06 -0400 Bud <[EMAIL PROTECTED]>
writes:
> On 4/14/00, Lon Lentz penned:
> >  Just refer to the name of the attribute you want to use -
> >#cookie.name_of_attribute#
> 
> That doesn't work. cookie.expires returns an error. 
> cookie.cookiename.expires returns an error.
> 
> 
> Bud Schneehagen - Tropical Web Creations
> 
> _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
> ColdFusion Solutions / eCommerce Development
> [EMAIL PROTECTED]
> http://www.twcreations.com/
> 954.721.3452
>
-------------------------------------------------------------------------
-----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit 
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk

> or send a message to [EMAIL PROTECTED] with 
> 'unsubscribe' in the body.

________________________________________________________________
YOU'RE PAYING TOO MUCH FOR THE INTERNET!
Juno now offers FREE Internet Access!
Try it today - there's no risk!  For your FREE software, visit:
http://dl.www.juno.com/get/tagj.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to