Keep a variable in url

Hello, i ask this because i need to know if there is a way to keep a variable in my url, i want to do this to implement a way to use sessions with tokens that are in my database and i need to keep that variable until user logs out.

This should do it for you.