Session
Moderatori: Zamolxe, Moderatori
Session NOT set!
http://www.phpromania.net/forum/posting.php
Array ( [refered] => http://www.phpromania.net/forum/posting.php )
am facut acest test si la mine a returnat pagina asta, deci sessiunea nu a fost setata dar s-a setat in momentul accesarii. acum se mai pune problema si de browser, nu toate browserele returneaza http_referer, iar dupa cum am citit eu de pe php.net...
'HTTP_REFERER'
The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted.
http://www.phpromania.net/forum/posting.php
Array ( [refered] => http://www.phpromania.net/forum/posting.php )
am facut acest test si la mine a returnat pagina asta, deci sessiunea nu a fost setata dar s-a setat in momentul accesarii. acum se mai pune problema si de browser, nu toate browserele returneaza http_referer, iar dupa cum am citit eu de pe php.net...
'HTTP_REFERER'
The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted.
-
MasterPhoton
- Senior Member
- Mesaje: 437
- Membru din: Joi Mar 06, 2003 7:03 pm
-
MasterPhoton
- Senior Member
- Mesaje: 437
- Membru din: Joi Mar 06, 2003 7:03 pm
site 1:
www.XXXXXXX.com/test.html contine un iframe cu src='www.site2.com/export.php'
site 2/export.php:
verifica de unde vine cererea, la prima accesare, prin HTTP_REFERER (asta merge), si seteaza $_SESSION['referer'] = $_SERVER['HTTP_REFERER']; (asta NU mai merge). La a doua accesare in iframeul din site1, sesiunea nu mai exista...DE CE? (si mai ales de ce ieri a mers???)
www.XXXXXXX.com/test.html contine un iframe cu src='www.site2.com/export.php'
site 2/export.php:
verifica de unde vine cererea, la prima accesare, prin HTTP_REFERER (asta merge), si seteaza $_SESSION['referer'] = $_SERVER['HTTP_REFERER']; (asta NU mai merge). La a doua accesare in iframeul din site1, sesiunea nu mai exista...DE CE? (si mai ales de ce ieri a mers???)
-
MasterPhoton
- Senior Member
- Mesaje: 437
- Membru din: Joi Mar 06, 2003 7:03 pm
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 9 vizitatori
