fix #1287: Make sure expired cookies get removed from session.cookies
Add a unit test for server expiring cookies from session
Make sure unit test works on python 2.6
Merge pull request #1290 from gazpachoking/#1287

fix #1287: Make sure expired cookies get removed from session.cookies