joomla/joomla-platform — pull request #1492 by realityking (2012-08-26 23:25:23+00:00)
Title: Populate the session table with the minimum of data if the record doesn't yet exist.

This should make small applications a bit easier since they don't have to create the session record themselves.

We should look into using the merge/replace into syntax on supported database drivers to save the count query. If someone could do the database abstraction for this that'd be great.