hschottm / tags

Contao tags extension
11 stars 16 forks source link

Stop using the session #75

Closed aschempp closed 2 years ago

aschempp commented 3 years ago

Using the session to store runtime behaviour is not ideal, because it will always start the session for the user and disable the Contao cache. Since the properties seem only used for the current request, we don't need the session to transport them to the next page view.

I have updated some of the places that should affect the front end. There is also a lot of session usage in the DCA callbacks, but I couldn't figure out how that is used (it is only read but never set…?). It shouldn't affect the frontend though.

hschottm commented 2 years ago

Taken over changes for Contao 4.13 installations. Also fixed other usages of Session and Cookies.