English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I need to make a login system across sub-domains, like the one Yahoo has. So if user wants to login he is redirected to login.domain.com and then back to www.domain.com or sub.domain.com???? I've been searching for it everywhere but the only way I could do it is by using web-beacons but it's not quite what I need...

2006-10-11 10:10:15 · 3 answers · asked by MAX 1 in Computers & Internet Programming & Design

3 answers

Depends upon if you want secure logins.

You might have to set-up a secure server. If Yahoo! is the example you wish to emulate, you need to set up a secure server, one with certificate(s). That server is able to "authenticate" the user and give path-directory permissions between the two; for example, if you have a "login button" you want to set that login button which might be on your "main page"

http://www.domain.com/

to "submit" FORM should set it to direct to the secure server @

https://login.domain.com/ ->

after authentication and "cookies" are given/accepted, for the session, that site will redirect to

http://subdomain.domain.com/

It's a pretty complicated process if you want "secure" login. If not, you can just set your subdomain to match the subdirectory path. . . for example, set up a subdirectory called "users"

and have that correlate with http://www.domain.com/users?user=###

using PHP scripts.

Hope this helps and good luck.

2006-10-11 10:28:54 · answer #1 · answered by indiejade 2 · 0 0

when you redirect the person to the login screen you need to include some sort of tag about where they came from. This can either be done in the URL or using session cookies. I suggest url, this is how Yahoo does it.

ex: http://login.domain.com/login.php?ref=sendbackto

after you process the login, use the ref variable to redirect them back to where they came from. Hope this helps, let me knwo if you need more help

2006-10-11 10:29:47 · answer #2 · answered by Brady 3 · 0 0

THE tag where it came from and it also depends too. Sub-domains are anywhere, mostly on free hosted websites !!!

2006-10-11 10:52:06 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers