stas Wed May 16 01:32:28 2007 UTC Modified files: /php-src/ext/session session.c Log: do not send cookie when session is passed in URL, same as it happens with GET/POST http://cvs.php.net/viewvc.cgi/php-src/ext/session/session.c?r1=1.469&r2=1.470&diff_format=u Index: php-src/ext/session/session.c diff -u php-src/ext/session/session.c:1.469 php-src/ext/session/session.c:1.470 --- php-src/ext/session/session.c:1.469 Wed May 2 10:30:24 2007 +++ php-src/ext/session/session.c Wed May 16 01:32:28 2007 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: session.c,v 1.469 2007/05/02 10:30:24 tony2001 Exp $ */ +/* $Id: session.c,v 1.470 2007/05/16 01:32:28 stas Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1275,6 +1275,7 @@ p += lensess + 1; if ((q = strpbrk(p, "/?\\"))) { PS(id) = estrndup(p, q - p); + PS(send_cookie) = 0; } }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php