-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I've added a SSL proxy check. If a SSL proxy is used, domain and path of cookie have to be set differently.
- Loading branch information
Showing
1 changed file
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello.
In this code, cookie is not set in my environment (reverse proxy is used).
I think that it is not necessarily SSL proxy even if "$_SERVER['HTTP_X_FORWARDED_SERVER']" is set.
(For example, reverse proxy and load balancer, and so on.)
Moreover, path and domain do not necessarily change.
Can the condition be changed?
I am doing as follows for now.
Best regards.