https://www.icyphoenix.com/viewtopic.php?f=4&t=2124&p=15303#p15303
-----------------------------------
Zuker
Sat 26 May, 2007 19:04

ACP - Configuring Domain / Script Path / Cookie Settings
-----------------------------------
There are lot's of times that users post icy problems, that solution are refered to wrong cookie settings

So in this topic, u'll learn how to configure it

Written By: [url=http://www.phpbb.com/community/memberlist.php?mode=viewprofile&u=151944]Marshalrusty
[hr]
[b][size=14]Overview[/size][/b]

[list]
    [*] In this article I will explain how to:
          o Use Geocator's [url=http://www.phpbb.com/community/viewtopic.php?t=228741]Auto Cookies MOD to automatically fix cookie settings
          o Manually configure the settings by directly editing the config table in the database
    [*] These are some "symptoms" of incorrect cookie settings:
          o You are redirected to a blank page or 404 page after logging in, but if you click back, you are logged in
          o You are redirected to a blank screen or 404 page when trying to access the administration panel
          o You have to enter your username/password more than once to successfully login
          o You are redirected to other locations when logging in or entering the administration panel[/list]
[b][size=14]Automatic Fix[/size][/b]

          1. Download the [url=http://www.phpbb.com/community/viewtopic.php?t=228741]Auto Cookies MOD
          2. Use WinRAR or WinZip to extract the 'install' folder and upload it to your forum's root folder (the one with config.php)
          3. Run cookie.php by navigating to it in your browser (http://www.example.com/{phpbb_root}/install/cookie.php)
          4. Save the settings suggested by the script (see the explanation below for more information on the proper configuration)
          5. Delete the install folder
          6. Clear your browser's cookies and cache. Restart your browser
          7. Test[list]

   [*] If the suggested settings do not work, be sure to read the explanation below. The MOD [b]can [/b]on occasion make a mistake.[/list]

[b][size=14]Explanation/Manual Fix[/size][/b]

[list]    [*] In most cases, the suggested settings provided by the Auto Cookie MOD (above) are correct, however if you wish to learn how the settings are derived or to double check the settings provided by the MOD, here is an explanation. Below are three scenarios with correct cookie settings. Use them as a model to set your own.

   1. [b]Board location: http://www.example.com/board/
      Your settings should be:[/b]

      [b]Domain Name: [/b]http://www.example.com (Note that the domain doesn't include 'http://', which is a protocol)
      [b]Script Path:[/b] /board/ (Simply the path to the folder with a trailing slash)
      [b]Cookie Domain:[/b] .example.com (Note the dot in front; the cookie domain always needs to have 2 dots)
      [b]Cookie Path:[/b] /board (This is the script path without the trailing slash)
      [b]Cookie Name:[/b] example_cookie (This can be anything (no spaces or periods). Make it original)
      [b]Session Length (seconds):[/b] 3600 This can be different, but an hour (3600 seconds) is a good number)

   2.[b] Board location: http://forums.example.net/
      Your settings should be:[/b]

      [b]Domain Name:[/b] forums.example.net (Note that the domain doesn't include 'http://', which is a protocol)
      [b]Script Path:[/b] / (Since there are no additional directories, just a slash)
      [b]Cookie Domain:[/b] forums.example.net (Two dots are already present, hence no preceding dot is necessary)
      [b]Cookie Path:[/b] / (This is the script path without the trailing slash)
      [b]Cookie Name:[/b] example_cookie (This can be anything (no spaces or periods). Make it original)
      [b]Session Length (seconds):[/b] 3600 (This can be different, but an hour is a good number)

   3. [b]Board location: http://www.example.co.uk/icy/
      Your settings should be:[/b]

      [b]Domain Name:[/b] http://www.example.co.uk (Note that the domain doesn't include 'http://', which is a protocol)
      [b]Script Path:[/b] /icy/ (Simply the path to the folder with a trailing slash)
      [b]Cookie Domain:[/b] example.co.uk (Two dots are already present, hence no preceding dot is necessary)
      [b]Cookie Path:[/b] /icy(This is the script path without the trailing slash)
      [b]Cookie Name:[/b] example_cookie (This can be anything (no spaces or periods). Make it original)
      [b]Session Length (seconds):[/b] 3600 (This can be different, but an hour is a good number)[/list]


