php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32878 iframe and session problems
Submitted: 2005-04-28 22:21 UTC Modified: 2005-04-29 01:46 UTC
From: iztok dot polanic at gmail dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 5.0.4 OS: Windows XP
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: iztok dot polanic at gmail dot com
New email:
PHP Version: OS:

 

 [2005-04-28 22:21 UTC] iztok dot polanic at gmail dot com
Description:
------------
PHP seems to have some problems with frames, in my case iframes. I noticed this error when I tried to load  one template in two separate iframes. If they are loaded simultanously there comes to a problem with session variables getting lost. And also getting Permission denied(13) in session_start(). As it seems PHP doesn't check if the session file is already in use.

To reproduce the actual result, you have to click on a link 'odpri' atleast 5-15 times

Reproduce code:
---------------
main.php
<? session_start(); ?>

<? $_SESSION['name'] = 'iztok'; ?>
<a href="#" onClick="bla.location.href = 'left.php';bla2.location.href = 'right.php';">odpri</a><br><br>
<iframe name="bla" width="100%" height="100"></iframe>
<iframe name="bla2" width="100%" height="100"></iframe>

left.php
<? session_start(); ?>
<? print $_SESSION['name']; ?>

right.php
<? session_start(); ?>
<? print $_SESSION['name']; ?>


Expected result:
----------------
iztok

Actual result:
--------------
Warning: session_start() [function.session-start]: open(c:\php\sessiondata\sess_793ef570090b599c6d973dfc64696a46, O_RDWR) failed: Permission denied (13) in C:\Documents and Settings\Iztok\My Documents\My Website\left.php on line 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-29 01:46 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


RTFM:
http://www.php.net/manual/en/function.session-write-close.php

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC