Added getAndForget method to Session\Store.

Added method to Seesion\Store as detailed in issue #4135.