Forum Archive - Blank page when using cookies

Blank page when using cookies
Apr 18, 2011 2:01 pm by lenier
I decided to write the script: 1. User chose some language 2. Language is saving into cookies 3. When user comes to site again language is reading from cookies and script redirects user to destination URL which contains the language code Saving language parameter in cookies and redirecting are OK but redirected page is blank. When I delete the saved cookie and reload the page it has content.
Re: Blank page when using cookies
Apr 19, 2011 1:19 pm by Edvard
I think in that case you will have a redirect loop since the translator requests the exact same non translate page to make the translation and it also passes the cookies... You can add a check to see if the request comes from other than your server IP before redirecting.

SIMILAR TOPICS

GT doesn't work...error 404 pageJan 28, 2019 5:36 pmReplies: 1Post by: vincenzodinuzzo
Translate website to any specific language, on page loadJan 19, 2019 6:49 amReplies: 1Post by: Leaon7756
Best way to translate a page in WordPress?Jan 7, 2019 11:10 amReplies: 3Post by: Tonnystark
Is it translate web page in any languageAug 17, 2018 12:23 pmReplies: 3Post by: jaizoojee
Set the language through the URL, from a different pageSep 2, 2018 7:51 pmReplies: 3Post by: Jorgedmm

Try GTranslate with a free 15 day trial