Set sessions variables.

Fixes #1
Use user_id instead of login
Merge pull request #2 from gisce/gh-1

Set sessions variables.