Forum Moderators: DixonJones
A cookie can be set in the browser "immediately" and checked "immediately".
JavaScript functions are called AFTER a page request
Using PHP/ASP/...:
A cookie can be set AS the user request a page.
A cookie can be checked AS the user requests a SUBSEQUENT page.
PHP functions are called AS a page is requested, ie. BEFORE any JavaScript is run.
;)
;)