Mailinglisten-Archive |
><?php
>if (!$sessionid)
>{
> mt_srand((double)time()*1000000);
> $sessionid=3Dmd5(mt_rand(100000,999999));
> setcookie("sessionid",sessionid, time()+3600);
>}
>echo $sessionid;
>?>
>
>allerdings bekomm ich im Browser(IE Cookies aktiviert) folgende
>Fehlermeldung:
>
>Warning: Cannot add header information - headers already sent by (output
>started at c:\apache\apache\htdocs\session\session.php:6) in
>c:\apache\apache\htdocs\session\session.php on line 11
>1eabaafaf80ff54146af47a6bdb27a21
Das geht problemlos unter WAMP, nur sendest Du offenbar irgendetwas an
den Browser, bevor dieses script abl=E4uft - z.B. eine Leerzeile oder
so.
---
Thomas Beckmann, Kiel, Germany
beckmann_(at)_gis.de
php::bar PHP Wiki - Listenarchive