Please sign in to comment.
Fix bug: the TransientSession overwrite carried over into alternate c…
…all stacks. Details: * TransientSession used to overwrite the 'rack.session' of a given environment settings without duplicating the env. * Bug example: ChainedRouter is inserted in a Rails application, and has two paths A and B. TransientSession is middleware in path A, but path A eventually returns an X-Cascade of pass. So path B is called with the session values set by path A. The end Rails app also has the corrupted session values instead of the original cookie sessions. * Fix is to duplicate the environment before setting the 'rack.session' key.
- Loading branch information...
Showing with 9 additions and 3 deletions.