Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #32878 : iframe and session problems
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 25th March 23:36
php-bugs
External User
 
Posts: 1
Default #32878 : iframe and session problems


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_793ef570090b599c6d973 dfc64696a46, O_RDWR)
failed: Permission denied (13) in C:\Do***ents and Settings\Iztok\My
Do***ents\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 With Quote


  sponsored links


2 25th March 23:36
External User
 
Posts: 1
Default #32878 : iframe and session problems


ID: 32878
Updated by: sniper@php.net
Reported By: iztok dot polanic at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: Windows XP
PHP Version: 5.0.4
New Comment:

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

Previous Comments:
------------------------------------------------------------------------

[2005-04-28 22:21:17] 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_793ef570090b599c6d973 dfc64696a46, O_RDWR)
failed: Permission denied (13) in C:\Do***ents and Settings\Iztok\My
Do***ents\My Website\left.php on line 1


------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=32878&edit=1
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666