By the way, It is not safe to use YAML sessions with production site.
I used YAML sessions in Dancer1 app and pretty soon there appeared
tons of files with sessions and evrything broke, because there was no
free inodes.
This backend an [sic] perfectly be used in production environments,
but two things should be kept in mind: The content of the session
files is in plain text, and the session files should be purged by a
CRON job.
I haven't had any problems like you describe, so perhaps your issue
was limited to Dancer::Session::YAML, which according to the docs
is "not recommended...in production environments." Either that, or
you just have too many visitors to your site ;)