[TYPO3-english] EXT: felogin - What's the difference between the GET/POS and the REFERER options?

Peter Klein pmk at io.dk
Thu Apr 22 18:01:56 CEST 2010


Hi Jigal.

Thanks for explaining the differences. That helped me a lot!

--
Peter Klein / Clio Online.

"Jigal van Hemert" <jigal at xs4all.nl> wrote in message 
news:mailman.10059.1271785570.610.typo3-english at lists.typo3.org...
> Peter Klein wrote:
>> The GET/POST option is described like this:
>> Redirect the visitor based on the GET/POST variable 'redirect_url'. If 
>> the TypoScript configuration config.typolinkLinkAccessRestrictedPages is 
>> set, the GET/POST parameter 'return_url' is used.
>> Example url:
>> http://www.domain.ext/index.php?id=12&redirect_url=http%3A%2F%2Fwww%2Edomain%2Eext%2Fdestiny%2F
>>
>>
>> And REFERER is is described like this (which is wrong):
>> The referer page is used for the redirect. This basically means that the 
>> user is sent back to the page he originally came from.
>>
>> The REFERER option works exactly like the GET/POST method, only 
>> difference is that you need to set "referer" GET/POST variable instedad 
>> of "redirect_url".
>
> It only seems like this! You could 'fake' a referrer by setting the 
> GET/POST variable, but normally it's initialised by the login form.
> In felogin_pi1::showLogin() around line 466 the variable is initialized 
> with HTTP_REFERER.
> This is transferred from the login form to the felogin plugin after the 
> login to handle the redirect.
> After the login the felogin plugin would see the login form as the 
> referrer and we need the referrer of the login form to redirect to. That's 
> why it's transferred as a GET/POST variable.
>
> HTH
>
> -- 
> Jigal van Hemert
> skype:jigal.van.hemert
> msn: jigal at xs4all.nl
> http://twitter.com/jigalvh 




More information about the TYPO3-english mailing list