fixed #8, only gen cookie and set session when session is really modified
Merge pull request #10 from dead-horse/issue8-refresh

fixed #8, only gen cookie and set session when session is really modified