[TYPO3-dev] Setcookie problem

Tapio Markula tapio.markula at atwebteam.com
Wed Jan 10 21:11:08 CET 2007


Hi

I found weird problem.
the code below worked in preIni() of alt_doc.php

             $userName=$BE_USER->user['username'];
             $expiration = 8640000;
             // save cookiedata

             $saveContentUID=$BE_USER->user['username'].'[saveContentUID]';
             $saveContentPID=$BE_USER->user['username'].'[saveContentPID]';
 
$saveContentLang=$BE_USER->user['username'].'[saveContentLang]';

             setcookie($saveContentUID,$itemData['uid'], 
time()+$expiration);
             setcookie($saveContentPID,$itemData['pid'], 
time()+$expiration);
             setcookie($saveContentLang,$itemData['l18n_parent'], 
time()+$expiration);

but not is a rendering function either init() of db_layout.php
Debugged
    #t3lib_div::debug($myGET); // ok
             #t3lib_div::debug($itemData);        // ok

             #t3lib_div::debug($_COOKIE[$userName]); // not changed 
after reload.

Is there some functionality limitations for setcookie that it would not 
work in certain circumstances?
or is this a path problem




More information about the TYPO3-dev mailing list