Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #28547
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | Brixomatic <brixomatic@yahoo.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: share data between two tomcat contexts? |
| Date | Thu, 22 May 2014 18:58:08 +0200 |
| Organization | Aioe.org NNTP Server |
| Lines | 35 |
| Message-ID | <MPG.2de84b0ba23714f0989685@news.aioe.org> (permalink) |
| References | <ll675j$4rn$1@news.m-online.net> <MZqdnW2ubo69nurOnZ2dnUVZ8rSdnZ2d@giganews.com> <ll7gok$ghl$1@news.m-online.net> |
| NNTP-Posting-Host | RECk+L8JVbk5/SPbBxX51w.user.speranza.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="us-ascii" |
| Content-Transfer-Encoding | 7bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | MicroPlanet-Gravity/3.0.4 |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| Xref | csiph.com comp.lang.java.programmer:28547 |
Show key headers only | View raw
In article <ll7gok$ghl$1@news.m-online.net>, Laura Schmidt (ls@mailinator.com) says... > Well, the first application is an existing legacy application where > users can login. > > When logged in, they are informed about a relaunch of the application > and they can follow a link to it. > > Within the new application I would like to know the identity of the user > who is coming from the legacy application. This is why I would like to > access the other one's sesson. Why not have the first application return a customized link that contains some individual random token. Have it send that token to the second application using a web service or by updating some table in a shared database. When the second application comes in with that link, like: http://x.example/index.html?token=128739987216 check that token against the recent tokens and log him on without asking for credentials, if the token matches a present one. Don't forget to expire tokens after a few minutes and after use, to avoid attackers using an old or active token and mind that the tokens should be big enough and randomly generated, so an attackers cannot just try a bunch of random tokens for quite some time, waiting for a real user to get a same one by chance. Kind regards, Wanja -- ..Alesi's problem was that the back of the car was jumping up and down dangerously - and I can assure you from having been teammate to Jean Alesi and knowing what kind of cars that he can pull up with, when Jean Alesi says that a car is dangerous - it is. [Jonathan Palmer]
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
share data between two tomcat contexts? Laura Schmidt <ls@mailinator.com> - 2014-05-17 01:32 +0200
Re: share data between two tomcat contexts? markspace <markspace@nospam.nospam> - 2014-05-16 16:41 -0700
Re: share data between two tomcat contexts? Laura Schmidt <ls@mailinator.com> - 2014-05-17 02:19 +0200
Re: share data between two tomcat contexts? markspace <markspace@nospam.nospam> - 2014-05-16 17:40 -0700
Re: share data between two tomcat contexts? Laura Schmidt <ls@mailinator.com> - 2014-05-17 08:16 +0200
Re: share data between two tomcat contexts? Josip Almasi <joe@vrspace.org> - 2014-05-17 09:29 +0200
Re: share data between two tomcat contexts? Arne Vajhøj <arne@vajhoej.dk> - 2014-05-16 19:45 -0400
Re: share data between two tomcat contexts? Robert Klemme <shortcutter@googlemail.com> - 2014-05-17 12:46 +0200
Re: share data between two tomcat contexts? leif.roar@invalid.com (Leif Roar Moldskred) - 2014-05-17 01:35 -0500
Re: share data between two tomcat contexts? Laura Schmidt <ls@mailinator.com> - 2014-05-17 13:22 +0200
Re: share data between two tomcat contexts? lipska the kat <lipskathekat@example.com> - 2014-05-17 13:04 +0100
Re: share data between two tomcat contexts? leif.roar@invalid.com (Leif Roar Moldskred) - 2014-05-17 08:25 -0500
Re: share data between two tomcat contexts? "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-05-17 17:21 +0100
Re: share data between two tomcat contexts? Robert Klemme <shortcutter@googlemail.com> - 2014-05-18 10:12 +0200
Re: share data between two tomcat contexts? lipska the kat <lipskathekat@example.com> - 2014-05-18 11:13 +0100
Re: share data between two tomcat contexts? Brixomatic <brixomatic@yahoo.com> - 2014-05-22 18:58 +0200
Re: share data between two tomcat contexts? "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-05-17 11:11 +0100
csiph-web