I have one server but two directories for example:
- www
- Directory1
- index.php
- page1.php
- page2.php
- Directory2
- index.php
- page3.php
- page4.php
When I want to transfer from the page index.php of Directory1 to the page index.php of Directory2, how can I pass the cookies set in the page index.php of Directory1 using PHP?
according to PHP documentation
when you set the fourth parameter i.e
pathas/, it will be accessible to you on the domain level, and i guess that is what you need.