Quote:
Originally posted by stcham
One last question, and then I'll be of your back 
Does anyone have an Idea how to accomplish this without using cookies? I want to be able to switch the language even if the user has the usage of cookies turned of in his browser.
How can I keep the $language variable set during the entire visit of the user?
Thanks!
|
Simple... Read the Language set in the User's Browser. It is located in the HTTP Header, HTTP_ACCEPT_LANGUAGE
Match these to your language files and you won't need cookies.