diff --git a/include/class.ostsession.php b/include/class.ostsession.php
index d93de839a9770e422dcde63205060af27ff95fa7..f649955494a8ba85460fcf2ff463bbc46ce3a9e6 100644
--- a/include/class.ostsession.php
+++ b/include/class.ostsession.php
@@ -135,7 +135,7 @@ abstract class SessionBackend {
     var $isnew = false;
     var $ttl;
 
-    function __construct($ttl) {
+    function __construct($ttl=SESSION_TTL) {
         $this->ttl = $ttl;
     }
 
diff --git a/include/upgrader/streams/core/c00511c7-7be60a84.task.php b/include/upgrader/streams/core/c00511c7-7be60a84.task.php
index eca25aee2c623a13a956d2d7df13843ba4b7bee0..91706eaff0a86e7800c33964bce225a6e826e028 100644
--- a/include/upgrader/streams/core/c00511c7-7be60a84.task.php
+++ b/include/upgrader/streams/core/c00511c7-7be60a84.task.php
@@ -6,7 +6,8 @@ class MigrateDbSession extends MigrationTask {
 
     function run() {
         # How about 'dis for a hack?
-        osTicketSession::write(session_id(), session_encode());
+        $session = new DbSessionBackend();
+        $session->write(session_id(), session_encode());
     }
 }