Session state with checkbox

Hi, I’m new here and I’ve run into a problem and I’d appreciate some help.
Here is the code I use:
label=f’Choose Year’,
format_func=‘title’, size=‘md’, align=‘start’, radius=‘md’, color=‘red’, index=[0])

In my menu, when I change categories and then return to my current category, my selection remains in the checkbox instead of returning to my set default.
I saw that it is possible to use session.state in order to overcome this, but I encountered difficulties because it is a list. Is there maybe another way to solve this?
Many thanks in advance!