You are here: Strange problem about sessions and frames « PHP Programming Language « IT news, forums, messages
Strange problem about sessions and frames

Posted by Neven Luetic on 11/04/05 19:28

Hello,

I have an application, that does a redirect inside a frame, after setting
a sessionvariable, like this:

content of
http://appserver.de/login1/test1.php:

<?php
session_start();
$SESSVAR = "login1" ;
session_register("SESSVAR");
$location = "http://appserver.de/app/test2.php";
?>
<html>
<frameset rows="*" frameborder="NO" border="0" >
<frame src="<?php echo $location ?>" APPLICATION="yes">
</frameset>
</html>

This works, when I access the page directly. However, we have another
server, that does a redirect onto this page, also inside a frame (just
the same code with this page as target). Called
from there, SESSVAR is not set. In this case it only works without
framesets or with SID.

Does anybody know, why?

Changing everything to SID right now would not be a solution for us.

Greetings

Neven

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация