Locale setting via cache/session

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
ttyy
Posts: 10
Joined: 02 Apr 2021, 16:31

Locale setting via cache/session

Post by ttyy » 15 Apr 2021, 10:07

I'm aware that in order to get proper locale / currency there are params passed via url.
Is there a possibility to do the same thing but to set locale settings in cache / session and use those values instead of url params. If not what would be a good approach to do so?

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Locale setting via cache/session

Post by aimeos » 16 Apr 2021, 15:40

In theory, it's possible by implementing a Laravel middleware but we strongly advice against. Reason is that Aimeos content caching won't work any more because your URLs are not unique any more (REST principle).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

ttyy
Posts: 10
Joined: 02 Apr 2021, 16:31

Re: Locale setting via cache/session

Post by ttyy » 20 Apr 2021, 13:31

Thanks for feedback

Post Reply