chenwenfeng
chenwenfeng

Reputation: 85

play framework secure config

When I set application.session.secure=true in application.conf I can't store anything in the session. Can anyone tell me how this is supposed to work?

Upvotes: 2

Views: 1519

Answers (1)

Jean-Philippe Briend
Jean-Philippe Briend

Reputation: 3525

session.secure=true only tells the client to send the cookie only over https (not over http).

Remember that Play! is a stateless framework. Nothing should be kept in the session. If you need to store things, use the cookie.

Upvotes: 9

Related Questions