Hallo, ich habe ein Frameset mit Sessions gebaut. Nur wenn ich mir in jedem Frame die Seeion ausgeben lasse, habe ich unterschiedliche Session ids. Hier mal der Code des Framesets.
Villeicht kann mir ja jemand helfen, wär cool. Danke.
PHP-Code:
<?php
session_start();
?>
<html>
<head>
<title>Kasus Computer Shop</title>
<link href='standard.css' rel='stylesheet' type='text/css'>
</head>
<frameset cols='200, *, 200' frameborder = '1' bordercolor='#000000' style='border-style:outset;'>
<frameset rows='130, 110, *'>
<frame name='logo1' src='logo.php' scrolling='no' marginheight='0'>
<?php
echo" <frame name='warenkorbklein' src='https://sslsys.de/web21/html/warenkorb/warenkorb_klein.php?".SID."' scrolling='no' marginheight='5' marginwidth='10'>
<frame name='navigation' src='werbung.php?".SID."' scrolling='auto'> ";
?>
</frameset>
<frameset rows='130, *'>
<?php
echo" <frame name='oben' src='oben.php?".SID."' scrolling='auto'>
<frame name='anzeige' src='navigation/produktanzeige.php?".SID."' scrolling='auto' marginheight='20' marginwidth='10'>";
?>
</frameset>
<frameset rows='130, 135, 150,*'>
<?php
echo" <frame name='logo2' src='logo.php' scrolling='no' marginheight='0'>
<frame name='suche' src='produktsuche/produktsucheeingabe.php?".SID."' scrolling='no'>
<frame name='login' src='https://sslsys.de/web21/html/formulare/login.php?".SID."' scrolling='no'>
<frame name='links' src='links.php' scrolling='auto'> ";
?>
</frameset>
<noframes>
<body>
Leider unterstützt ihr Webbrowser keine framebasierten Webseiten.</a></p>
</body>
</noframes>
</frameset>
</html>
Kommentar