Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    829
    Likes Received:
    26
    Trophy Points:
    178
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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:
    43,617
    Likes Received:
    1,787
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice