CodeIgniter Forums
Language Selector bug - ajax incompatibility. Sesson flashdata uri cleared by ajax requests. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Language Selector bug - ajax incompatibility. Sesson flashdata uri cleared by ajax requests. (/showthread.php?tid=4025)



Language Selector bug - ajax incompatibility. Sesson flashdata uri cleared by ajax requests. - El Forum - 11-02-2007

[eluser]kylehase[/eluser]
I'm using the language selection library which sets the current URI in the flashdata to return users to their original page after changing the language. I have an ajax update which makes a request every 10 seconds to a controller which outputs a div (which does not include the language controller) so the flashdata is cleared and not updated once an Ajax request is made.

I think the easiest workaround is to modify the language selector to use standard session data instead of flashdata.

Any other suggestions?


Language Selector bug - ajax incompatibility. Sesson flashdata uri cleared by ajax requests. - El Forum - 01-13-2009

[eluser]Roland B.[/eluser]
[quote author="kylehase" date="1194072898"]I'm using the language selection library ....

I think the easiest workaround is to modify the language selector to use standard session data instead of flashdata.

Any other suggestions?[/quote]

Today I released a new version of Language Selection. Please see Language Selection 2 for details.
The most important modification was to remove the depandency from any Session altogether.
Maybe it solves your problem.