Adjusted session timeout to be 12 hours.

This commit is contained in:
Jonathan Bernard
2011-06-18 09:36:03 -05:00
parent f3ef7db088
commit b01421d45d
3 changed files with 15 additions and 2 deletions

View File

@ -10,7 +10,7 @@ new(Username) ->
Session = #ts_api_session{
username = Username,
expires = Seconds + 600 % timeout is 10 minutes
expires = Seconds + 12*24*24
},
CookieVal = yaws_api:new_cookie_session(Session),
@ -48,7 +48,7 @@ get_session(YArg) ->
% cookie is fresh
true ->
% update the expiry time
NewSession = Session#ts_api_session{expires = NowSeconds + 500},
NewSession = Session#ts_api_session{expires = NowSeconds + 12*24*24},
yaws_api:replace_cookie_session(CookieVal, NewSession),
% return cookie