The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Share PHP sessions among multiple domains

Discussion in 'General Discussion' started by vibol, Apr 15, 2014.

  1. vibol

    vibol Active Member

    Joined:
    Jan 21, 2014
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello i have have domain.com and sub.doamin.com but how to make both domain have the same session when i start session or cookie ?
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
  3. vibol

    vibol Active Member

    Joined:
    Jan 21, 2014
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Re: About php session

    I just wanted to point out that it's likely not a good security practice to implement this type of behavior. You may want to look at your overall goal and determine if it's worth making such a change.

    Thank you.
     
  5. vibol

    vibol Active Member

    Joined:
    Jan 21, 2014
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Re: About php session

    Understand thz for your recommended. But i want when my user login with mydomain.com they can access sub.mydomain.com without re-login again. thz
     
Loading...

Share This Page