Seamless travel persistence

i would like to know if there’s a way to reset everything when using server travel and seamless travel, just like disconnecting and reconnecting. I noticed that some values like for example the ones stored in the gamemode persist during the map change.
Thanks in advance.