added support for configuring cookie expiration

and ignore swap files. because not everyone has their swp files written to temp like some bash genius.