SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Cookie question

  1. #1
    SitePoint Guru
    Join Date
    Nov 2000
    Posts
    740
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cookie question

    I have a php webpage mypage.php that drops a cookie. What happens if I iframe that webpage like this:

    Code:
    <iframe src ="mypage"  	width="100%" height="300">
      <p>Your browser does not support iframes.</p>
          </iframe>
    When I load mainpage.html, does the cookie still get dropped? And does the referrer come from mypage.php or mainpage.html?

    Thanks,

    Jon

  2. #2
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    do this on each page and see what the values are:
    PHP Code:
    <?php
    var_dump
    $_COOKIE ) ;
    var_dump$_SERVER ) ;
    ?>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •