Implements session _refresh()_ method that creates a new valid session is internal cookie is expired, or the current session otherwise.