Hi folks,
Here's my situation. I'm migrating an older perl based site to drupal. There are various sections (ie. forum, directory, photo archive, etc) on the site and, to make my life easier, I'm migrating one section at a time.
I've imported all my users from the old site into drupal. Next, I setup the drupal services module so that when new users register on the old site, they are also added to the drupal site. So the user databases are all synched up.
Now, I'm trying to figure out how to login a user to both sites at once. I want to make the old site the central login form, and when they login there, they are also logged in to the new drupal site. I'm stumped.
Does anybody have any thoughts on this? (If possible I'd love to use the services module to pull this off...)
Thanks,
Mike
Comments
as u have made use of the
as u have made use of the service to create user account in Druap, why not use the user.login service to help u?
Thanks for the thought.
Thanks for the thought. That's actually how I did it.
1. User logs in to the perl script as usual.
2. Wrote some extra perl to take the login info and using perl LWP, connect with the drupal user.login service.
3. Service returns a valid drupal session cookie.
4. Perl script sets the cookie using CGI::Cookie
5. User is now logged in to both systems.
I believe, due to the limitations of cookies, this is only possible if both applications are running on the same primary domain. eg...
http://perl.yoursite.com
http://drupal.yoursite.com
Set the drupal cookie domain from the perl as .yoursite.com not drupal.yoursite.com
Civicsolar
http://www.civicsolar.com