ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karim Fadel <Karim.Fa...@esrinea.com>
Subject Session with Weblogic and Ignite
Date Wed, 08 Aug 2018 13:45:43 GMT
Dears,

We are facing a problem with session timeout in weblogic
We are using ignite, spring and spring security and deploy on tomcat and weblogic

and we found something that Ignite has a special handle for sessionId in case of WebLogic

        String srvInfo = ctx.getServerInfo();

        // Special case for WebLogic, which appends timestamps to session
        // IDs upon session creation (the created session ID looks like:
        // pdpTSTcCcG6CVM8BTZWzxjTB1lh3w7zFbYVvwBb4bJGjrBx3TMPl!-508312620!1385045122601).
        if (srvInfo != null && srvInfo.contains("WebLogic")) {
            sesIdTransformer = new C1<String, String>() {
                @Override public String apply(String s) {
                    // Find first exclamation mark.
                    int idx = s.indexOf('!');

                    // Return original string if not found.
                    if (idx < 0 || idx == s.length() - 1)
                        return s;

                    // Find second exclamation mark.
                    idx = s.indexOf('!', idx + 1);

                    // Return original string if not found.
                    if (idx < 0)
                        return s;

                    // Return the session ID without timestamp.
                    return s.substring(0, idx);
                }
            };
        }


Could you please describe what is the problem in weblogic, that could be help us to understand
problem that we have.
Best Regards,
Karim M.Fadel | SW Developer | GSS
Esri Northeast Africa | 13 G Ahmed Kamel Street, New Maadi, Cairo, Egypt
M +20 271615995| Extension 2706
Karim.fadel@esrinea.com<http://@esrinea.com> | www.esrinea.com<http://www.esrinea.com/>
[Description: cid:image001.png@01CDAA34.62617D70]


Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message