You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by Karim Fadel <Ka...@esrinea.com> on 2018/08/08 13:45:43 UTC
Session with Weblogic and Ignite
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<ht...@esrinea.com> | www.esrinea.com<http://www.esrinea.com/>
[Description: cid:image001.png@01CDAA34.62617D70]
Re: Session with Weblogic and Ignite
Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!
I think that the comment sums it up nicely. WebLogic seems to add extra
stuff to session ID, which has to be removed.
What is the problem that you have? I suggest responding to userlist (
*user@ignite.apache.org
<us...@ignite.apache.org>* ) since it's the one to discuss end user problems.
Regards,
--
Ilya Kasnacheev
2018-08-08 16:45 GMT+03:00 Karim Fadel <Ka...@esrinea.com>:
> 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 | www.esrinea.com
>
> [image: Description: cid:image001.png@01CDAA34.62617D70]
>
>
>