hi all,
my index page has two links. one link for the arabic section of the website, and another link for the english section of the website. when a user visits the page for the first time, he's gonna have to choose a language, but i don't want him to have to choose a language everytime he visits the website. that's why i want to store his preference in a cookie, so that next time he visits, i re-direct him automatically.
can someone give me instructions on how to do that? even high-level non-technical instructions are very much appreciated.
thanks,
set/read user preferences in/from a cookie?
Moderator: General Moderators
set a cookie:
http://us2.php.net/manual/en/function.setcookie.php
when any user visits the site check to see if the cookie is set and what language it should be.
http://us2.php.net/manual/en/function.setcookie.php
when any user visits the site check to see if the cookie is set and what language it should be.