horst: setcookie

Beitrag lesen

Hi

Aber wie "Setze" ich das auf ein jahr? ich kann doch denke ich nur time()+? machen, oder?

hey... Du musst doch nur die Doku lesen...:

The time the cookie expires. This is a unix timestamp so is in
number of seconds since the epoch. In otherwords, you'll most likely
set this with the time() function plus the number of seconds before
you want it to expire. Or you might use mktime().
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^

http://www.php.net/manual/en/function.mktime.php

Gruss