Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi! I was wondering if anyone could tell me what I'm doing wrong here -- I have a website, where the domain is XYZ.com, and the homepage is frames page (top 1 pixel frame is locally hosted), but the bottom large frame points to a perl script on another server (say ABC.com) (where the actual website and database are). Now the thing is that I was able to get cookies working (a few posts earlier than this one), but the cookies only get set when I goto the script directly in the browser. If I goto XYZ.com, and the bottom frame goes to ABC.com, the script does not set a cookie.

Any ideas on what I could do?

BTW I have the above scenario, cuz my domain name for the website is stuck with these guys for 2 years, but they don't offer all the services I need now, hence the website runs off my other hosted website.

Please do let me know.

Thanks, SP

Replies are listed 'Best First'.
Re: Cookies and Frames
by mpolo (Chaplain) on Feb 27, 2003 at 10:58 UTC
    Some of the newer browsers prevent "third-party" cookies from being set, either by default or as an option. That is, if the cookie is coming from somewhere other than where the frameset is hosted, the browser assumes it's an evil spyware cookie and blocks it.

    You can probably turn off this protection in your own browser to verify whether this is indeed the problem. If so, you've got a nasty problem, as many users would have to correct their browsers.

Re: Cookies and Frames
by Jaap (Curate) on Feb 27, 2003 at 10:59 UTC
    This could be a security setting of your browser. I had the same problem and fixed it by enabling "Access data sources across domains" in my Internet Explorer / Tools / Internet Options / Security / Custom Level.
    This will not help however if you want all your customers to use the cookies on your webpage.
Re: Cookies and Frames
by traveler (Parson) on Feb 27, 2003 at 15:32 UTC
    It sounds as though the only reason for the 1pixel frame is to do the redirect. If this is so, why not just send a redirect to the user's browser? The adjusted URL will appear in the URL window, but you could set the title to whatever you want.

    HTH, --traveler