This is not possible. It is a PCI requirement to kill inactive sessions after 20 minutes. Some people have implemented features that track the session time (indirectly) and then prompt the user to refresh their session by performing some interaction with the server, which is fine. However, automatically refreshing the session is not permitted.