[TYPO3-dev] cookieSecure & cli_dispatcher
Jigal van Hemert
jigal at xs4all.nl
Thu Feb 10 07:32:46 CET 2011
Hi,
On 10-2-2011 1:16, Tolleiv.Nietsch wrote:
> Ok thanks for the confirmation. Hope to find some time for the
> resolution in the next days.
I think it's pretty useless to set cookies in CLI mode at all. This
could be arranged by changing init.php:
// *******************************
// BackEnd User authentication
// *******************************
/*
NOTICE:
if constant TYPO3_PROCEED_IF_NO_USER is defined true (in the
mainscript), this script will return even though a user did not log in!
*/
/** @var $BE_USER t3lib_beUserAuth */
$BE_USER = t3lib_div::makeInstance('t3lib_beUserAuth'); // New backend
user object
$BE_USER->warningEmail = $TYPO3_CONF_VARS['BE']['warning_email_addr'];
$BE_USER->lockIP = $TYPO3_CONF_VARS['BE']['lockIP'];
$BE_USER->auth_timeout_field =
intval($TYPO3_CONF_VARS['BE']['sessionTimeout']);
$BE_USER->OS = TYPO3_OS;
if (TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_CLI) {
$BE_USER->dontSetCookie = TRUE;
}
$BE_USER->start(); // Object is initialized
$BE_USER->checkCLIuser();
$BE_USER->backendCheckLogin(); // Checking if there's a user logged in
(I added the @var to help IDEs)
--
Kind regards / met vriendelijke groet,
Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh
More information about the TYPO3-dev
mailing list