godperl7 schrieb am 21.07.2012 um 13:30 (+0800): > Dancer:Plugin:Database takes care of ensuring that the database handle > is still connected and valid. > If the handle was last asked for more than connection_check_threshold > seconds ago, it will check that the connection is still alive. > If the connection has gone away,Dancer:Plugin:Database will use some > methods to create and obtain a new connection. > But i can't understant how the new connection get the information of > the last disconnection and maintain the last disconnection's sessions
It does neither. The connection is lost, and the session is lost with it. That's usually not a big deal, just reconnect. I could imagine a database server or middleware that keeps the session persistent but I've never seen any, probably for a reason: there would be lots of complications. Michael