1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

One login within subdomains

Discussion in 'C#' started by digitalunix, Aug 13, 2009.

  1. #1
    Hi all,

    Anyone can help with the idea of how to make a login page within subdomains? Users should login all of the subdomains throughout one login page.

    E.g. i have "www.test.com" and i have "sub1.test.com" and "sub2.test.com"

    And normally i have a successful login page at www.test.com. But whenever i try to send the login form from sub1.test.com to www.test.com, the session only let the user to login to www.test.com, but not to sub1.test.com or sub2.test.com

    Maybe i miss something. Can someone help?
     
    digitalunix, Aug 13, 2009 IP
  2. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #2
    Well i think ull have to make a seprate php script for creating a cookie when someone logins call it everytime someone logins so that it creates a cookie for all subdomains
     
    Bohra, Aug 13, 2009 IP
  3. digitalunix

    digitalunix Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    it is not in PHP, yet in ASP and also i need more precise examples pls.
     
    digitalunix, Aug 13, 2009 IP
  4. jaydev

    jaydev Well-Known Member

    Messages:
    199
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    103
    #4
    you need the single sign on. search in google for single sign on in asp, you should be able to find lot of samples
     
    jaydev, Aug 13, 2009 IP
  5. digitalunix

    digitalunix Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I found something called Xsess, i think this will work for now.

    Edit: the only problem is that you can only login to one another subdomain with this script. This doesnt let user login to the complete subdomain system. This script redirects the session variables to the other page. But what if the user wants to use the sub2.test.com service, this script stucks...!

    Using cookies is a bit risky, that is why i wanted sessions instead. Any other idea?
     
    Last edited: Aug 14, 2009
    digitalunix, Aug 14, 2009 IP