In article <ll7gok$ghl$
1...@news.m-online.net>, Laura Schmidt
(
l...@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]