Having a login page implies that the user can be identified by a userid.
I am making another assumption that there will be only one session per userid.
You don't need to persist the userid - last page association. You can keep this association in a singleton
pattern.