Hello, How can I navigate to a specific page where the user was previously?

Hello,
How can I navigate to a specific page where the user was previously?
I save the page number in the session and set for Example: grid.setPage(5)
but unfortunately nothing happens, the first page is always displayed…
thank you!

Any answer for this question? Thanks