From:             iztok dot polanic at gmail dot com
Operating system: Windows XP
PHP version:      5.0.4
PHP Bug Type:     Session related
Bug description:  iframe and session problems

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

-- 
Edit bug report at http://bugs.php.net/?id=32878&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32878&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32878&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32878&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32878&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32878&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32878&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32878&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32878&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32878&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32878&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32878&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32878&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32878&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32878&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32878&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32878&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32878&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32878&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32878&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32878&r=mysqlcfg

Reply via email to