icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old August 30th, 2004, 12:33 PM   #1 (permalink)
Registered User
Comfy Contributor
 
Joined in Oct 2003
Lives in midtown atlanta
Hosted on viva
174 posts
Gave thanks: 0
Thanked 1 Time in 1 Post
subdomain login

here is the scenario i would like.

i have a link from my main page, www.site.com, called 'clients'.
when it is clicked, a login window or page appears.
depending on the login name used, the client is directed to a different subdomain.

ie,
client 1 logs in as client1/password, and is taken to client1.site.com
client 2 logs in as client2/password, and is taken to client2.site.com
client 3 logs in as client3/password, and is taken to client3.site.com
etc...

i would like this to happen from a click from a single link, instead of telling each client a different subdomain to go to for each instance.

is this someting i can do in cpanel, or is it more of a task for a php login script or something?
thanks in advance.
__________________
pass8: www.sisyphean.com
saprus: www.postbaroque.com
saucemaster is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 30th, 2004, 12:39 PM   #2 (permalink)
minor deity
Super #1
 
Bigjohn's Avatar
 
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,387 posts
Gave thanks: 28
Thanked 94 times
Quote:
Originally Posted by saucemaster
here is the scenario i would like.

i have a link from my main page, www.site.com, called 'clients'.
when it is clicked, a login window or page appears.
depending on the login name used, the client is directed to a different subdomain.

ie,
client 1 logs in as client1/password, and is taken to client1.site.com
client 2 logs in as client2/password, and is taken to client2.site.com
client 3 logs in as client3/password, and is taken to client3.site.com
etc...

i would like this to happen from a click from a single link, instead of telling each client a different subdomain to go to for each instance.

is this someting i can do in cpanel, or is it more of a task for a php login script or something?
thanks in advance.

On the main page you'd need some PHP scripting. I'm assuming this is just for viewing the site, right? You'd probably want the index.html page on the subdomain to check and see if they've come from the main page as well - otherwise you could just go straight there via URL.

John
__________________
Proud to be a Surmunity Mod!
XEON PASS60 PASS61
Make a fundamental difference!
My Sites:
Curious about Brewing Beer? Join the community!
>>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax
Get into an Art museum
Victorian London
It's your brain -ON WEB - mybrainhost.com (under development)
What SHOULD Government do? Much Less than it Does!
Bigjohn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may post new threads
You may post replies
You may post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On