[Cocoa] Clean up session state API a little
Created attachment 234830 [details] Patch
Committed <http://trac.webkit.org/r171050>.