[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: expiring cookie
At 02:06 PM 6/16/99 , Andreas Kotowicz wrote:
>****** message to minivend-users from Andreas Kotowicz
<koto@mynetix.de> ******
>
>Hi all,
>
>I wondered if it is possible to set the cookie which is given to the
>browser at the beginning of a mv session some kind of expire signal, so a
>new cookie is send. I think I read somewhere about it but I can't remember.
I don't know the MV syntax, but the logic is to set the expiry to the
current time. Here's a javascript example:
function DeleteCookie (name) {
var exp = new Date();
exp.setTime (exp.getTime() - 1);
var cval = GetCookie (name);
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
>
>Anyone a hint?
>
>Andreas
>PS: there is a german mailinglist available: write "subscribe minivend-de"
> to majordomo@minivend.com
>-
>To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
>email with 'UNSUBSCRIBE minivend-users' in the body to
Majordomo@minivend.com.
>Archive of past messages: http://www.minivend.com/minivend/minivend-list
>
Ryan Hertz tel 520-645-3812
Webmaster tel 800-645-BAIT
Advertising Director fax 520-645-2588
Gary Yamamoto Custom Baits, Inc. http://www.yamamoto.baits.com