zdimon
Новичок
При редиректе пропадает сессия
Помогите разобраться со следующей проблемой.
На сайте есть ряд отсылок внутренних сообщений.
После такой отсылки формой вызывается промежуточная страница с
<meta http-equiv=refresh content="2;URL='mypage.php'">
Так вот при первом авторизованном заходе и отправке сообщения с этой промежуточной страницы не отправляется кука с идентификатором сессии и в следствии чего на странице mypage.php уже регистрируется новая сессия.
Но после второй авторизации эта проблема пропадает и при редиректе идентификатор сессии передается нормально.
Привожу диалог
Промежуточная страница
GET / HTTP/1.1
Accept: */*
Referer: http://www.domain.com/index.php?action=mailbox&new=1
Accept-Language: uk
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Host: www.domain.com
Connection: Keep-Alive
Cookie: __utma=17180015.1591574968.1203412182.1203413827.1203415700.6; __utmb=17180015; __utmz=17180015.1203412182.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); __utmc=17180015; PHPSESSID=37e06fcbfeb6bee42eae4d2715947f9c
HTTP/1.1 200 OK
Date: Tue, 19 Feb 2008 10:09:04 GMT
Server: Apache/1.3.37 (Unix) mod_psoft_traffic/0.1 Vortech_PHP/0.1.0-p0 FrontPage/5.0.2.2623 mod_throttle/3.1.2 mod_ssl/2.8.28 OpenSSL/0.9.7e-p1
Cache-Control: no-cache, must-revalidate
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
X-Powered-By: PHP/5.2.1
X-Vortech-PHP: 0.1.0-p0
Keep-Alive: timeout=15, max=92
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8
из нее редирект
GET /?action=mailbox&sent=1 HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: uk
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Host: www.domain.net
Connection: Keep-Alive
Cookie: __utma=259614684.234869269.1203412238.1203413671.1203414155.5; __utmb=259614684; __utmz=259614684.1203412238.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)
HTTP/1.1 200 OK
Date: Tue, 19 Feb 2008 10:09:10 GMT
Server: Apache/1.3.37 (Unix) mod_psoft_traffic/0.1 Vortech_PHP/0.1.0-p0 FrontPage/5.0.2.2623 mod_throttle/3.1.2 mod_ssl/2.8.28 OpenSSL/0.9.7e-p1
Cache-Control: no-cache, must-revalidate
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
X-Powered-By: PHP/5.2.1
Set-Cookie: PHPSESSID=576eaba5928cdcfe0e2b7aad686c9f31; path=/
X-Vortech-PHP: 0.1.0-p0
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8
Помогите разобраться со следующей проблемой.
На сайте есть ряд отсылок внутренних сообщений.
После такой отсылки формой вызывается промежуточная страница с
<meta http-equiv=refresh content="2;URL='mypage.php'">
Так вот при первом авторизованном заходе и отправке сообщения с этой промежуточной страницы не отправляется кука с идентификатором сессии и в следствии чего на странице mypage.php уже регистрируется новая сессия.
Но после второй авторизации эта проблема пропадает и при редиректе идентификатор сессии передается нормально.
Привожу диалог
Промежуточная страница
GET / HTTP/1.1
Accept: */*
Referer: http://www.domain.com/index.php?action=mailbox&new=1
Accept-Language: uk
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Host: www.domain.com
Connection: Keep-Alive
Cookie: __utma=17180015.1591574968.1203412182.1203413827.1203415700.6; __utmb=17180015; __utmz=17180015.1203412182.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); __utmc=17180015; PHPSESSID=37e06fcbfeb6bee42eae4d2715947f9c
HTTP/1.1 200 OK
Date: Tue, 19 Feb 2008 10:09:04 GMT
Server: Apache/1.3.37 (Unix) mod_psoft_traffic/0.1 Vortech_PHP/0.1.0-p0 FrontPage/5.0.2.2623 mod_throttle/3.1.2 mod_ssl/2.8.28 OpenSSL/0.9.7e-p1
Cache-Control: no-cache, must-revalidate
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
X-Powered-By: PHP/5.2.1
X-Vortech-PHP: 0.1.0-p0
Keep-Alive: timeout=15, max=92
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8
из нее редирект
GET /?action=mailbox&sent=1 HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: uk
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Host: www.domain.net
Connection: Keep-Alive
Cookie: __utma=259614684.234869269.1203412238.1203413671.1203414155.5; __utmb=259614684; __utmz=259614684.1203412238.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)
HTTP/1.1 200 OK
Date: Tue, 19 Feb 2008 10:09:10 GMT
Server: Apache/1.3.37 (Unix) mod_psoft_traffic/0.1 Vortech_PHP/0.1.0-p0 FrontPage/5.0.2.2623 mod_throttle/3.1.2 mod_ssl/2.8.28 OpenSSL/0.9.7e-p1
Cache-Control: no-cache, must-revalidate
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
X-Powered-By: PHP/5.2.1
Set-Cookie: PHPSESSID=576eaba5928cdcfe0e2b7aad686c9f31; path=/
X-Vortech-PHP: 0.1.0-p0
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8
