I have 1 legacy site and the other new.
The new site will be embedded into legacy site as an iframe
.
In the new site I know the list of users registered in legacy site.
I want to know which user is opening my page, registered and logged in the legacy site.
What is the best way to pass username to new site from old site in HTTP URL with knowing that it is safe?
I was thinking about passing as GET parameter encrypted data, which will be decrypted in new site. This data would contain username and timestamp and salt. In new site I will check if username is in my list of registered users, and I will grant acces for a particular time. Is that a secure way?
There is only HTTP without SSL.