as I wrote above, cgiapp plugin "creates" the session always. For example, if user simply view start page of site, the plugin will create a session object and save it in DB. If user not login and simply browse site the plugin will create sessions objects.
But I want to create session only when user has logged in. I do not need a session object when user simply browse site.