hej igen
vem fan
du รคn รคr
If it is a member or not,
you can start a SESSION for any surfer at your website
and to begin with set
session_start();
$_SESSION[ "lang" ] = "english"; // or "default"
In any page where this surfer make a language choice
or if visitor is a member and Log In
you can let page change this variable accordingly:
session_start();
$choice_made = "something";
$SESSION[ "lang" ] = $choice_made;
or
$SESSION[ "lang" ] = $loggedin_user_data_language;
======
THE GOOGLE WAY of language for visitor
www.google.com always try to find out what language
anyone visitor would prefer or is having.
If you have set it in "Google preferences" (where you can set also how many hits on each serch result page)
this is used.
This preference you once made is in a Cookie in your PC - C:/internet stuff/cookies/
Google stores nothing about you in google.com server (I hope)
If no cookie is found, they try to find some other info.
I guess they examine some Browser or Internet settings in your PC.
If this is not found, they will set your language to English
and Store it in a Cookie (if you allow cookies = Enabled for google)
๐ ๐
Next time they (google script) will find this cookie,
and does not bother trying to search for info in Browser and your Internet settings.
this cookie value is then copied into your 'google SESSION'
and is there until you end (close down your browser, or SESSION times out)
session_start();
$visitor_Cookie_language_settting = $COOKIE_lang_data;
$_SESSION[ "lang" ] = $visitor_Cookie_language_setting;
include ( "/languages/" . $_SESSION[ "lang" ] . ".php";
Google.se - google in swedish
google cookie data found in halojoy Cookie folder:
[b]###google##u###PREF##]ID=3dfa07c4fdgh43211:FF=4:LD=en:NR=50:NW=1:CR=2:TM=1119134028[/b]
Notice:
PREF ( preferences )
LD=en ( language default = english )
NR=50 ( I want 50 hits on each page of search result, def=10 )