Results 1 to 11 of 11
  1. #1

    Making cookie acceptable by explorer

    Hi

    i am using

    1*1 iframe on site that opens another website that sets cookie

    but what i see explorer rejects it with default settings how can i make an acceptable cookie?

    thanks

  2. #2
    Join Date
    Apr 2002
    Location
    Southern Maryland
    Posts
    246
    You could make a cookie.php file and include it in the new page. In that file put in the following which I found here:
    http://www.juicystudio.com/tutorial/php/cookies.asp by hunting on Google for "cookie set php".

    Code:
    <?php 
        // Set a cookie that expires in one hour
        setcookie("userName", $name, time()+3600);
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
                "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <title>PHP Cookies</title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    </head>
    <body>
    <p>
    A cookie was set on this page, and will be active when 
    the client has sent the cookie back to the server.
    </p>
    </body>
    </html>
    PHP is fun.

    If you want another option, go here:
    http://www.phpbuilder.com/manual/function.setcookie.php

    There are a lot of tutorials out there to do what you want...it should work in IE and Mozilla/Netscape.
    Sara

    Sara Nelson Photography Preserving your moments since 1973.

  3. #3
    well problem is different

    it is not about making a cookie it is about making a cookie that opens in 1*1 pixel iframe that open in different page from original page and making it acceptable by ie

  4. #4
    Join Date
    Apr 2002
    Location
    Southern Maryland
    Posts
    246
    That's not a cookie, that's a pop up window.
    Sara

    Sara Nelson Photography Preserving your moments since 1973.

  5. #5
    What? An iframe is an inline frame. It's nothing to do with a popup window.

    What you need to do zagadka is use javascript src files, eg:
    <script type="text/javascript" language="javascript" src="http://address.to/script"></script>

  6. #6
    That is a 1*1 pixel iframe

    Originally posted by Southern Gal
    That's not a cookie, that's a pop up window.

  7. #7
    Join Date
    Apr 2002
    Location
    Southern Maryland
    Posts
    246
    Yes, I know it's an iframe, you can have an iframe window pop up when a link is clicked...don't you want it to take someone to that window with the original window still open? If so, that's a pop-up. You can use a chromeless window, like this: http://www.dynamicdrive.com/dynamici...chromeless.htm
    There's also a chromeless window for IE: http://www.siteexperts.com/tips/tech...ts05/page1.asp
    I'm not really sure where the cookie question comes in though.
    Sara

    Sara Nelson Photography Preserving your moments since 1973.

  8. #8
    I am sorry what are you talking about?

    i am talking about cookies?


    Originally posted by Southern Gal
    Yes, I know it's an iframe, you can have an iframe window pop up when a link is clicked...don't you want it to take someone to that window with the original window still open? If so, that's a pop-up. You can use a chromeless window, like this: http://www.dynamicdrive.com/dynamici...chromeless.htm
    There's also a chromeless window for IE: http://www.siteexperts.com/tips/tech...ts05/page1.asp
    I'm not really sure where the cookie question comes in though.

  9. #9
    Join Date
    Apr 2002
    Location
    Southern Maryland
    Posts
    246
    Eh, never mind. Tried to help though. Good luck with your cookies.
    Sara

    Sara Nelson Photography Preserving your moments since 1973.

  10. #10
    Join Date
    Sep 2003
    Location
    London, UK
    Posts
    188
    I think you'll have problems doing this if I understand what you're saying.

    The contents of the iframe is from a different server/domain from the main the iframe is on right? Well IE has a privacy feature that stops accepting cookies from domains other than the one which is in the main window. You can control this in the security/privacy settings in IE but then you need to ask your users to do this.
    Rob Johnston | LucidUK.com | [email protected]
    Who is Rob? boobear.co.uk
    MSN: [email protected] | AIM: rob at lucid

  11. #11
    Join Date
    Aug 2003
    Location
    Montreal, Quebec
    Posts
    20
    I think he want to talk about P3P to make IE accepting Cookies.
    More info at: http://www.w3.org/P3P/

    but like lucid said, if the cookie comes from another domain, IE will not accept it.

Posting Permissions

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