Multilanguage Site Using Cookie and Session?
Posted: Tue Oct 12, 2004 6:27 am
Hi!
I am developing a website in three languages today and right now I have a DIR for every language so, I have 3 pages at the same issue to every language...very hard to deal with all them together cos I have to worry with different pages of the same subject...
I think this was reasonable in the past but not now, I think. I was wondering to use $_COOKIE and $SESSION to store the preference of the user, so, the user could SELECT (form/checkbox) its preference in a form and then CHECK the box appropriated to it and then CONFIRM. So the page could reload and then change all the text layout to it s choosen language...
I´ve being reading too much documents related to this subject, but I am still uncertain to build the best method. If is good to store the $_COOKIE session for that into $SESSION just in the case browser´s user has disabled $_COOKIE ... you know... what I really want is THE NEXT TIME THE SAME USER COMES TO MY SITE, my site recognize its preference and then automatically loads his/her preference.
I would really appreciate any comments about this subject so important and I think a lot of other people must collect these informations for another usage. So I hope this NEW TOPIC becomes very useful for everyone.
Thank you very much.
Poeta_Eletrico
I am developing a website in three languages today and right now I have a DIR for every language so, I have 3 pages at the same issue to every language...very hard to deal with all them together cos I have to worry with different pages of the same subject...
I think this was reasonable in the past but not now, I think. I was wondering to use $_COOKIE and $SESSION to store the preference of the user, so, the user could SELECT (form/checkbox) its preference in a form and then CHECK the box appropriated to it and then CONFIRM. So the page could reload and then change all the text layout to it s choosen language...
I´ve being reading too much documents related to this subject, but I am still uncertain to build the best method. If is good to store the $_COOKIE session for that into $SESSION just in the case browser´s user has disabled $_COOKIE ... you know... what I really want is THE NEXT TIME THE SAME USER COMES TO MY SITE, my site recognize its preference and then automatically loads his/her preference.
I would really appreciate any comments about this subject so important and I think a lot of other people must collect these informations for another usage. So I hope this NEW TOPIC becomes very useful for everyone.
Thank you very much.
Poeta_Eletrico