Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End SubDomain LogIns

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30017
    thisishard
    Member

    Hi, I have a website called, http://www.website.com (not really but this is an example). I want users to login to this site but their account control panel will be on http://www.subdomain.website.com, so they need to be redirected over there when they login. I usually do logins with php sessions rather than cookies but i don’t mind really.
    My question is, If they log on in the main site and are then directed to the sub domain, can they still remain logged on with either cookies or php sessions?

    Many Thanks for your time.
    Chris

    #81571
    thisishard
    Member

    Thanks

    #81422
    MrSoundless
    Member

    for cross-subdomain sessions running on the same host, try

    ini_set('session.cookie_domain', '.website.com');
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Back End’ is closed to new topics and replies.