I have written a custom function to set our MAGERUNCODE based on the accept language and the uri request (beeing /). THis works fine.
Now I have 1 remaining issue. And this is when the customer uses the store switcher and 'forces' to see another language. I understand that the request storeview is then stored in a COOKIE.
Question: how can I grab the storeview from te Magento cookie (after the language switcher was used)
Many thanks, Sean