ÿþ<HTML> <head> <title>Data Cookie</title> </head> <body> <SCRIPT LANGUAGE="JavaScript"> cookie_name = "LogonCookie"; var KundenID; var ClassID; function putCookie() { var ablauf = new Date(); var Millisekunden = ablauf.getTime() + (60 * 1000); ablauf.setTime(Millisekunden); if(document.cookie != document.cookie) {index = document.cookie.indexOf(cookie_name);} else {index = -1;} if (index == -1) { document.cookie=cookie_name+"=KundenID="+KundenID+"#ClassID=" + ClassID + "#; expires=" + ablauf.toGMTString(); index = document.cookie.indexOf(cookie_name); if (index == -1) { window.alert ("Cookie konte nicht gesetzt werden!"); } } } KundenID="123456789"; ClassID="-106"; putCookie() </SCRIPT> </BODY> </HTML>