title: How to cache user's preferred language on a multi-language website?
body: <p><strong>Hej y'all!</strong> I'm currently working on implementing multi-language for my personal website. So far I've created two php files with arrays for the german &amp; english translations which then get's loaded, based on the selected language, on my website using the <code>require_once(&quot;&quot;)</code>-method. I'd need to reload the website after the user changes the language to reload the content with the correct translation. But after reloading the page, the selection would of course be reseted. My question now is: How can I cache the selected language?</p>