adds explicit conversion of session[:expire] to string

Fixes an issue I had with a Time object throwing a parse error