concept session in category akka

appears as: session, session, sessions
Reactive Web Applications: With Play, Akka, and Reactive Streams

This is an excerpt from Manning's book Reactive Web Applications: With Play, Akka, and Reactive Streams.

This filter reads out the current score from Play’s session and then prints it by appending it to the existing body. Because the body is an asynchronous stream of bytes, you use the andThen method to compose the two streams handled by enumerators.

The last thing you need to do for this mechanism to work properly is initialize the session on login. In the existing authenticate method, swap out the result of a successful login with the following result: