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

Summit’s picture

After 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

ardas’s picture

I'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?

Summit’s picture

Yes,
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

ardas’s picture

I'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?

Summit’s picture

Then you get

Access denied
You are not authorized to access this page. 

And you stay logged in with the first logged in user.

Thanks for getting into this!

greetings,
Martijn

ardas’s picture

Well, 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.

s.Daniel’s picture

subscribing

ray_223’s picture

I believe the singlesignon module will solve this.

s.Daniel’s picture

singlesignon module is unmaintained and more or less broken.

rsvelko’s picture

in 6.x LD this works after release 2.6. which is coming today ..

Backporting it to 5.x is up to some volunteers.

ddrozdik’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Version 5 of the module is not supported anymore.