CodeIgniter Forums

Full Version: Loading New Language after Profile edit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

Hi there,
I am giving an option to my registerd users to have the language of their choice .
They can edit the language later on.I have 5 differnet languages and 4 kind of registerd users for my site.
My problem is that i can change the language and store it to a session and database both .But on redirecting the page to "Profileinfo" , I can not show the information with the new language just changed by the user.
To look the new language contents he/she will have to refresh the page again manually or click to some ohter link .

Any help will be appreciated !

El Forum

You could change the language using AJAX, and when the server returns the ok signal, do a redirect. Having done the AJAX call, the session will have the new language stored, so when redirecting the correct language will be used.