Add the line in the LocalConfig.php file.
@@ -147,3 +147,5 @@ wfLoadExtension( 'WikiEditor' );
# End of automatically generated settings.
# Add more configuration options below.
+# Fix login error
+$wgSessionCacheType = CACHE_DB;