Added getAndForget method to Session\Store.

Added method to Session\Store as detailed in issue #4135.

I'm not sure if I should add a test for this, let me know if I should please.