Double cookie but single session
LL::NG can deliver two cookies, a secured/https one and an unsecure/http one. In that case, two sessions are written, one per cookie, and these sessions hardly differ.
It would be more interesting for the database to write just one session. For that, the http cookie's value can be obtained by ciphering the secured cookie'.