[ Поиск ] - [ Пользователи ] - [ Календарь ]
Полная Версия: Разный ответ от сервера, print_r($_SERVER)
Alex_r
Всем привет. Столкнулся с такой загадкой. На субдомене представлена форма авторизации менеджера банка, работает на $.ajax. Запрос идет на основной домен. Я авторизуюсь без проблем, а менеджер банка с офиса не может авторизоваться. Думаю дело в их безопасности. Сайт на HTTP, HTTPS пока в планах. Решил я распечатать print_r($_SERVER) своей авторизации и авторизации менеджера и о чудо, они разные. Почему, я пока в догадках. Как решить проблему? Почему нет HTTP_REFERER у менеджера?

Моя авторизация.
Array
(
[PHP_FCGI_CHILDREN] => 0
[PATH] => /etc:/bin:/sbin:/usr/bin:/usr/sbin
[PHP_FCGI_MAX_REQUESTS] => 400
[PWD] => /var/fcgi/***/www.site.com.ua
[PHPRC] => /usr/local/php54/etc/
[PHP_INI_SCAN_DIR] => /var/fcgi/***/www.site.com.ua/
[ORIG_SCRIPT_NAME] => /cgi-bin/php.cgi
[ORIG_PATH_TRANSLATED] => /sata1/home/users/***/www/www.site.com.ua/controller/redirect.php
[ORIG_PATH_INFO] => /controller/redirect.php
[ORIG_SCRIPT_FILENAME] => /var/fcgi/***/www.site.com.ua/php.cgi
[SCRIPT_NAME] => /controller/redirect.php
[REQUEST_URI] => /controller/redirect.php
[QUERY_STRING] =>
[REQUEST_METHOD] => POST
[SERVER_PROTOCOL] => HTTP/1.0
[GATEWAY_INTERFACE] => CGI/1.1
[REDIRECT_URL] => /controller/redirect.php
[REMOTE_PORT] => 42217
[SCRIPT_FILENAME] => /sata1/home/users/***/www/www.site.com.ua/controller/redirect.php
[SERVER_ADMIN] => ***
[DOCUMENT_ROOT] => /sata1/home/users/***/www/www.site.com.ua
[REMOTE_ADDR] => ***
[SERVER_PORT] => 80
[SERVER_ADDR] => ***
[SERVER_NAME] => site.com.ua
[SERVER_SOFTWARE] => Apache/2.2.24 (FreeBSD)
[SERVER_SIGNATURE] => <address>Apache/2.2.24 (FreeBSD) Server at <a href="mailto:***">site.com.ua</a> Port 80</address>
[HTTP_ORIGIN] => http://m.site.com.ua
[CONTENT_LENGTH] => 19
[HTTP_ACCEPT_LANGUAGE] => ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
[HTTP_ACCEPT] => */*
[HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 5.1; rv:46.0) Gecko/20100101 Firefox/46.0
[CONTENT_TYPE] => application/x-www-form-urlencoded; charset=UTF-8
[HTTP_COOKIE] => ***
[HTTP_X_FORWARDED_PROTOCOL] => http
[HTTP_X_REAL_IP] => ***
[HTTP_HOST] => site.com.ua
[HTTP_CONNECTION] => close
[REDIRECT_STATUS] => 200
[REDIRECT_HANDLER] => application/x-httpd-fastphp
[FCGI_ROLE] => RESPONDER
[PHP_SELF] => /controller/redirect.php
[REQUEST_TIME_FLOAT] => 1463401319.1361
[REQUEST_TIME] => 1463401319
[HTTP_REFERER] => http://m.site.com.ua/?tab=offer
[HTTP_ACCEPT_ENCODING] => gzip, deflate
)


Авторизация менеджера.
Array
(
[PHP_FCGI_CHILDREN] => 0
[PATH] => /etc:/bin:/sbin:/usr/bin:/usr/sbin
[PHP_FCGI_MAX_REQUESTS] => 400
[PWD] => /var/fcgi/***/www.site.com.ua
[PHPRC] => /usr/local/php54/etc/
[PHP_INI_SCAN_DIR] => /var/fcgi/***/www.site.com.ua/
[ORIG_SCRIPT_NAME] => /cgi-bin/php.cgi
[ORIG_PATH_TRANSLATED] => /sata1/home/users/***/www/www.site.com.ua/controller/redirect.php
[ORIG_PATH_INFO] => /controller/redirect.php
[ORIG_SCRIPT_FILENAME] => /var/fcgi/***/www.site.com.ua/php.cgi
[SCRIPT_NAME] => /controller/redirect.php
[REQUEST_URI] => /controller/redirect.php
[QUERY_STRING] =>
[REQUEST_METHOD] => POST
[SERVER_PROTOCOL] => HTTP/1.0
[GATEWAY_INTERFACE] => CGI/1.1
[REDIRECT_URL] => /controller/redirect.php
[REMOTE_PORT] => 48813
[SCRIPT_FILENAME] => /sata1/home/users/***/www/www.site.com.ua/controller/redirect.php
[SERVER_ADMIN] => ***
[DOCUMENT_ROOT] => /sata1/home/users/***/www/www.site.com.ua
[REMOTE_ADDR] => ***
[SERVER_PORT] => 80
[SERVER_ADDR] => ***
[SERVER_NAME] => site.com.ua
[SERVER_SOFTWARE] => Apache/2.2.24 (FreeBSD)
[SERVER_SIGNATURE] => <address>Apache/2.2.24 (FreeBSD) Server at <a href="mailto:***">site.com.ua</a> Port 80</address>
[HTTP_CACHE_CONTROL] => no-cache
[HTTP_VIA] => 1.1 HQS-00-026, 1.1 srv-extsquid-01 (squid/3.3.8)
[HTTP_PRAGMA] => no-cache
[HTTP_ORIGIN] => http://m.site.com.ua
[CONTENT_LENGTH] => 19
[HTTP_ACCEPT_LANGUAGE] => ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
[HTTP_ACCEPT] => */*
[HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0
[CONTENT_TYPE] => application/x-www-form-urlencoded; charset=UTF-8
[HTTP_COOKIE] => ***
[HTTP_X_FORWARDED_PROTOCOL] => http
[HTTP_X_REAL_IP] => ***
[HTTP_HOST] => site.com.ua
[HTTP_CONNECTION] => close
[REDIRECT_STATUS] => 200
[REDIRECT_HANDLER] => application/x-httpd-fastphp
[FCGI_ROLE] => RESPONDER
[PHP_SELF] => /controller/redirect.php
[REQUEST_TIME_FLOAT] => 1463401329.4707
[REQUEST_TIME] => 1463401329
)
Быстрый ответ:

 Графические смайлики |  Показывать подпись
Здесь расположена полная версия этой страницы.
Invision Power Board © 2001-2024 Invision Power Services, Inc.