Hi,
I am trying to use this module to redirect to a subdomain instead of "within" the masterdomain.
Every user will have his own login page.
My website is www.isnow.in and for instance the user nico will have his login-page nico.isnow.in
How do I achieve this with this module?
I am thinking in the line of the example placed on the projectpage of this module, but how do I alter this to be able to "connect" to the subdomains?
This sentence should be altered I presume, but what code would reflect the subdomain redirect?
The suggestion with the profile module, suggested on another thread on drupal.org is not working for me. Will it be possible with only using this module? That would be my favorite solution, while you than not confuse the user to have to type in his own homepage.
} elseif ($user->uid == 2) {
// Redirect the user to his own subdomain
return ?????
Please help!
greetings,
Martijn
Comments
Comment #1
Summit CreditAttribution: Summit commentedAfter login in with user/login.
All possibilities that I try for phpsnippet gives me the: Access Denied!on content, while the navigation menu is correct set, so I am logged in but anyhow do not have access to the content through login_destination!
Please help! Thanks in advance.
greetings,
Martijn
Comment #2
ardas CreditAttribution: ardas commentedI've never tried to do this. Did you try to return a full external address of your domain?
Am I right that all your domains are processed by a single source code and the same database?
Comment #3
Summit CreditAttribution: Summit commentedYes,
I have one single source code and one database.
Multiple domains with Cname wildcard DNS.
It will still not work to redirect from the profile page to the subdomain.domain.in
Greetings,
Martijn
Comment #4
ardas CreditAttribution: ardas commentedI'm afraid there is a problem of Drupal user system. Need to check to be sure.
What happened if you log into the one subdomain and then try to open another one? Will you stay logged in?
Comment #5
Summit CreditAttribution: Summit commentedThen you get
And you stay logged in with the first logged in user.
Thanks for getting into this!
greetings,
Martijn
Comment #6
ardas CreditAttribution: ardas commentedWell, this is a problem of Drupal user system. Our module just redirects you to a location.
Unfortunatly, Drupal doesn't allow to stay logged in in multiple subdomains. I would like to know how to solve this issue!!! I may need it as well very soon.
Comment #7
s.Daniel CreditAttribution: s.Daniel commentedsubscribing
Comment #8
ray_223 CreditAttribution: ray_223 commentedI believe the singlesignon module will solve this.
Comment #9
s.Daniel CreditAttribution: s.Daniel commentedsinglesignon module is unmaintained and more or less broken.
Comment #10
rsvelko CreditAttribution: rsvelko commentedin 6.x LD this works after release 2.6. which is coming today ..
Backporting it to 5.x is up to some volunteers.
Comment #11
ddrozdik CreditAttribution: ddrozdik as a volunteer commentedVersion 5 of the module is not supported anymore.