Blank page when using cookies

Popular automatic website translation tool

Blank page when using cookies

Postby lenier » Mon Apr 18, 2011 6:01 pm

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.
Posts: 4
Joined: Tue Apr 12, 2011 10:13 pm

Re: Blank page when using cookies

Postby Edvard » Tue Apr 19, 2011 5:19 pm

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.

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Site Admin
Posts: 4403
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

  • Related Topics
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests