PDA

View Full Version : Cookies vs. Frames


yinyang
06-25-2005, 08:16 AM
The new layout of my website uses two frames. The left frame is the navigation frame and the right frame is any webpage that nav frame calls.

Here's the problem, as most of you coders know (and i just found out), cookies don't work. For example, if i link a nav button in the left frame to vbulletin.org, i have to log in each and every time i visit it. Cookies don't get stored and remembered.

Now, I know most of you willl tell me to ditch this set up. But is there a way for third party cookies to be remembered using frames?

Please help!

Jolten
06-25-2005, 09:17 AM
Use includes instead of frames.

yinyang
06-25-2005, 04:08 PM
Use includes instead of frames.
thanks!

um....how do you do that?

Jolten
06-25-2005, 06:23 PM
include('file.php');


Thank place your frame content in 'file.php'. Remember that the content must work with the page layout. With frames you have two separate html pages being displayed. with includes it's all one page and the content of the include must fit right into that single page.