[TYPO3] Cookie in extension

Tapio Markula tapio.markula at xetpoint.fi
Sat Apr 5 12:41:46 CEST 2008


Jeppe Donslund kirjoitti:
> The funny thing is, that it works in Forefox but not in IE.

a nice trick is to reset cookie variable after change - so the browser 
"thinks" that the stored data has been changed even if the change would 
work in the next time.

// sets cookie for the next times
setcookie($mainCookieName,'user', time()+$expiration);
		
// use immediately the set value
$_COOKIE[$userName]['mainCookie']='user';


More information about the TYPO3-english mailing list