Closed (fixed)
Project:
Language Switcher Dropdown
Version:
6.x-1.6
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 May 2011 at 15:29 UTC
Updated:
29 Jun 2012 at 16:21 UTC
Hey All,
I have been trying to send a cookie when somebody selects a "new" language from the language switcher.
I do this because i have htaccess RewriteCond based on that cookie
ok i have something like this:
setcookie('i18n_lang', '#value', time() + 604800);
But i'm really bad in coding and tried it everywhere... but none seem to work correct. Where could i place this code?
Comments
Comment #1
bajpaimonica commentedThis could solve your issue http://www.kevinquillen.com/delaware-web-design/using-cookies-in-drupal
Comment #2
janton commentedThx baj, i will read it when i get home :)
Comment #3
manfer commented