Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> $_SESSION NIE TRNSPORTOWANE DO IFRAME'A
amer
post
Post #1





Grupa: Zarejestrowani
Postów: 1
Pomógł: 0
Dołączył: 26.05.2004

Ostrzeżenie: (0%)
-----


Jesli ktos moze znalezc rozwiazanie i pomoc zrozumiec sytuacje to prosze pisac
[php:1:2db9908bc0]<?
session_start();
$_SESSION['x']="x";
session_register("register");
$register="y";
?>
<iframe src=x.php></iframe>

<? X.php
session_start();
$id=session_id();
print<<<end
$register $_SESSION['x'] $id
end;
?> [/php:1:2db9908bc0]



wynik kodu:
y cb05f6258e0fcdcbdde750ab3af85845

zatem zmienna zarejsetrowana $y i identyfikator sesji sa widoczne w iframie ale nie zmienna $_SESSION['x']...

(IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) ?

ps. aha w php.ini mam
session.use_trans_sid = 1
url_rewriter.tags=
"a=href,area=href,frame=src,input=src,form=fakeentry,iframe=src"
i register_globals = on
(jesli tomoze pomoc...)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 1)
Liko
post
Post #2





Grupa: Zarejestrowani
Postów: 436
Pomógł: 6
Dołączył: 8.11.2003
Skąd: Szczecin

Ostrzeżenie: (0%)
-----


Plik x.php
[php:1:bbda6834fd]
<?
session_start();
$id=session_id();
print("$register ".$_SESSION['x']." $id");
?>[/php:1:bbda6834fd]
A tak zobacz !!
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 19:43