provides fix for session when no record found
Merge pull request #27 from ashag/session

provides fix for session when no record found