[eluser]Phil Sturgeon[/eluser]
I'm using on purpose, so I can have links on the top of the site with ?lang=DE which would automatically switch the page they are on. Could be done using a controller and a redirect to the previous page or something, but this way seemed easy enough.
Also trying to handle as much of this before we have much of CI set, so if I set this in a controller I would have to have this session stuff in several files instead of one. IP based is another good idea, but lots of extra work. >.<
Btw, if you are using sub-domains, they don't have to be real sub-domains. Just setting some virtual ones would do the trick, then you can dynamically load the language in your config file or elsewhere based on the $_SERVER['SERVER_NAME'];