Jump to content


Corporate Sponsors


Latest News: (loading..)

loginid

Member Since 09 Oct 2007
Offline Last Active Sep 28 2011, 08:17
-----

Topics I've Started

Where To setCookie

27 September 2011, 15:03

Hi All,

Hope everyone is well today.

Just need a little advice about where to use setCookie

Right now I'm trying to set a cookie on a condition in application_top.php
What I'm doing is;

If http_get_vars = blah
then setCookie

But because of the limitations of cookies being part of the HTTP header and needing to be set before any output is sent to the browser.
I'm finding that the cookie is not getting set because it's encased within the application_top.php code.

So I'm wondering - does anyone out there know where in the osCommerce code I can setCookie?


Thanks in advance!