Store filters in session? Is a good practice?

I was using this for a while because when i got to the point where i needed to keep user filters “stored” i couldnt reach another solution.

But know im wondering.
Is there another “better” solution to keep user filter options persistent?