vpatryshev/meetupRoll — pull request #4 by jastakhova (2013-12-31 00:14:25+00:00)
Title: fixed None error when cookie gets outdated

Hi Vlad,

This is a fix for an error you sent:
Caused by: java.util.NoSuchElementException: None.get
at scala.None$.get(Option.scala:313)
at scala.None$.get(Option.scala:311)
at com.micronautics.meetupRoll.web.snippet.WinnerChoice.render(WinnerChoice.scala:134)
... 311 more

The problem was in the cookies that I didn't expect to get outdated... In fact all data from the app is kept as a session data and as Lift kills sessions in 20-30 mins of idleness than not-working-after-some-time is an expected behavior. Right now I fixed the error with redirect. So if session is lost then app will redirect to the start page with no exception in log.
It will not solve the problem if you still want to have the ability to send the results after some significant amount of time after the meetup. Do you? I'm asking 'cause as I understood Lift was built as a very securely tuned platform and playing with session expiration is not a secure step. The other solution would be to move from session data to persistent data (DB), but I'm not sure if you still need this...