+ Reply to Thread
Results 1 to 4 of 4

Thread: Change Cookie Domain

  1. #1
    Senior Member
    Join Date
    Oct 2014
    Posts
    169

    Question Change Cookie Domain

    How can i change my cookie domain from the top level domain to a sub-domain.

    Example: cookie for top level domain -> domain.com <- covers all sub-domains.

    I only want cookie to cover -> www.domain.com <-- "www"


    My objective is to create a cookie free domain -> static.domain.com to serve static contents from on the same server.

    This is an experiment to improve performance of website.

    Please show me which file(s) to change cookie domain

  2. #2
    Hello Errol,

    You can try to change 1 line in php.
    Open a file: ftp://includes>>control.inc.php

    find line:
    PHP Code:
    Only registered members can view the code
    and replace to:
    PHP Code:
    Only registered members can view the code
    save and check again.
    Last edited by Viktor; February 20, 2017 at 09:05 AM.
    Viktor,
    Flynax technical department,
    Best wishes.

  3. #3
    Senior Member
    Join Date
    Oct 2014
    Posts
    169
    is this correct


    PHP Code:
    Only registered members can view the code

  4. #4
    Hello Errol.

    Yes it should work. And all Flynax session will not work on subdomains.
    Viktor,
    Flynax technical department,
    Best wishes.

+ Reply to Thread