Bug #20424
closedBuilt In shopping basket is not working
0%
Description
The built in shopping basket is being blocked by the session fixation fix.
By default (and manual) the FE waits for the GPVar "recs" and then automatically stores things in the session.
Unfourtunately the session fixation fix changes the cookieId and id of the fe_user record to different values.
The tslib_feuserAuth::record_registration function check whether these values are the same (which the fixation fix denies).
Ingmar and I thought about this and we want to remove the check in record_registration.
Will attach patch soon (maybe after the coding night)
PHP:
/**
* Enter description here...
*
*/
class user_pleaseMichiel {
public function justdoItDontAsk($content, $conf) {
debug($GLOBALS['TSFE']->fe_user->sesData);
}
}
?>
=========
TS:
config {
doctype = xhtml_trans
xmlprologue = none
xhtml_cleaning = all
}
- Default PAGE object:
page = PAGE
page.10 = TEXT
page.10.value (
<form action="index.php" method="post">
<input field="hidden" name="recs[tt_content]1" value="3" />
<input type="submit" name="submit" value="machma" />
</form>
)
page.includeLibs.myFunc = fileadmin/neverstorephphere/user_doesntmatter.php
page.20 = USER_INT
page.20.userFunc = user_pleaseMichiel->justdoItDontAsk
========
See if there is data in the session.
(issue imported from #M11089)
Files
Updated by Benni Mack almost 15 years ago
More information about the functionality of the basket here:
Also, check my demo extension to set a value to the shopping basket
Updated by Benni Mack almost 15 years ago
Committed to trunk (rev. 6803)
Committed to TYPO3_4-3 (rev. 6804)
Committed to TYPO3_4-2 (rev. 6805)