Changeset 43883a9


Ignore:
Timestamp:
Apr 18, 2014 9:32:45 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
6ecfedb
Parents:
3930113
Message:

SusiMail?: Successfully extend session expiration (ticket #1253)
by renaming the cookie, so we don't have a common session ID
with the base context and get it expired there.

Location:
apps/susimail/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/susimail/src/WEB-INF/web.xml

    r3930113 r43883a9  
    1616    <session-timeout>1440</session-timeout>
    1717  </session-config>
     18  <!-- tomcat (untested) -->
     19  <context-param>
     20    <param-name>crossContext</param-name>
     21    <param-value>false</param-value>
     22  </context-param>
     23  <!-- jetty
     24    -  This is required so the same session ID isn't shared with
     25    -  the base context. When shared, it's expired after 30 minutes
     26    -  in the base context which invalidates it in our context too.
     27    -->
     28  <context-param>
     29    <param-name>org.eclipse.jetty.servlet.SessionCookie</param-name>
     30    <param-value>SUSIMAILJSESSIONID</param-value>
     31  </context-param>
    1832
    1933<!--
  • apps/susimail/src/src/i2p/susi/webmail/WebMail.java

    r3930113 r43883a9  
    12811281                        if (oldState != newState)
    12821282                                Debug.debug(Debug.DEBUG, "STATE CHANGE from " + oldState + " to " + newState);
    1283                         if (oldState == STATE_AUTH && newState != STATE_AUTH) {
    1284                                 // this isn't working in web.xml, so try setting it here
    1285                                 int oldIdle = httpSession.getMaxInactiveInterval();
    1286                                 httpSession.setMaxInactiveInterval(60*60*24);  // seconds
    1287                                 int newIdle = httpSession.getMaxInactiveInterval();
    1288                                 Debug.debug(Debug.DEBUG, "Changed idle from " + oldIdle + " to " + newIdle);
    1289                         }
     1283                        // Set in web.xml
     1284                        //if (oldState == STATE_AUTH && newState != STATE_AUTH) {
     1285                        //      int oldIdle = httpSession.getMaxInactiveInterval();
     1286                        //      httpSession.setMaxInactiveInterval(60*60*24);  // seconds
     1287                        //      int newIdle = httpSession.getMaxInactiveInterval();
     1288                        //      Debug.debug(Debug.DEBUG, "Changed idle from " + oldIdle + " to " + newIdle);
     1289                        //}
    12901290                       
    12911291                        if( sessionObject.state != STATE_AUTH )
Note: See TracChangeset for help on using the changeset viewer.