added settings for sessionduration and timeout
fixed timeoutbug concerning sessiontime