Yii Framework Forum: Accessing Cdbhttpsession In Iframe - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Accessing Cdbhttpsession In Iframe Rate Topic: ***** 1 Votes

#1 User is offline   Dirgh 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 27-November 13

Posted 09 February 2014 - 07:02 PM

Hi All,

I have a structure of a page which has iframe of a differet domain inside a page. both the domains are owned by me only. The problem I am facing is I cannot access session of a parent frame inside an iframe. I have also tried with database session but I am not getting a session variables inside an iframe.

<body>
<?php Yii::app()->session['myvar']="iframeVar";?>
<iframe scr="anotherdomain"></iframe>
</body>


and xyz.com.au looks like
<body>
<?php echo Yii::app()->session['myvar'];?>
</body>



Please guide me.

Thanks.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users