From b01421d45d8a2b3e9da339e20c0b0fc76689af33 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Sat, 18 Jun 2011 09:36:03 -0500 Subject: [PATCH] Adjusted session timeout to be 12 hours. --- doc/issues/desktop/0014fn6.rst | 2 ++ doc/issues/desktop/0028tn5.rst | 11 +++++++++++ src/ts_api_session.erl | 4 ++-- 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 doc/issues/desktop/0028tn5.rst diff --git a/doc/issues/desktop/0014fn6.rst b/doc/issues/desktop/0014fn6.rst index bc403eb..8bce7a3 100644 --- a/doc/issues/desktop/0014fn6.rst +++ b/doc/issues/desktop/0014fn6.rst @@ -4,6 +4,8 @@ Automatic code highlighting. Look at content in ``
`` and ```` blocks and see if we can highlight it.
 Planning to use Highlight.js to do this.
 
+----
+
 =========  ==========
 Created:   2011-05-15
 Resolved:  YYYY-MM-DD
diff --git a/doc/issues/desktop/0028tn5.rst b/doc/issues/desktop/0028tn5.rst
new file mode 100644
index 0000000..137e953
--- /dev/null
+++ b/doc/issues/desktop/0028tn5.rst
@@ -0,0 +1,11 @@
+Put more visual emphasis on the new entry text field.
+=====================================================
+
+Add a shadow, or light highlight, something.
+
+----
+
+=========  ==========
+Created:   2011-05-15
+Resolved:  YYYY-MM-DD
+=========  ==========
\ No newline at end of file
diff --git a/src/ts_api_session.erl b/src/ts_api_session.erl
index f55e0cb..3d33a39 100644
--- a/src/ts_api_session.erl
+++ b/src/ts_api_session.erl
@@ -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