added session api and module for entityform