ðòïåëôù 


  áòèé÷ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  óôáôøé 


  ðåòóïîáìøîïå 


  ðòïçòáííù 



ðéûéôå
ðéóøíá












     áòèé÷ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Expires × add header Set-Cookie



äÏÂÒÙÊ ÄÅÎØ!

2010/6/3 ShivaS <nginx-forum@xxxxxxxx>:
> äÏÂÒÙÊ ÄÅÎØ,
> îÅ ÍÏÇÕ ÒÅÛÉÔØ ÏÄÎÕ ÐÒÏÂÌÅÍÕ.
> ÷ÎÕÔÒÉ if ÄÅÌÁÀ ÕÓÔÁÎÏ×ËÕ ËÕËÉ:
>
> if ($request_uri ~* /id=([0-9]) {
> set š$id š$1;
> add_header Set-Cookie "id=$id; path=/; domain=.domain.com; expires=<DATE>";
> }
îÅ ÎÁÄÏ if

- location /id==([0-9]) {
+ location ~* /id=([0-9]) {
> š š š userid š š š š šon;
> š š š šuserid_name š š id:$1;
> š š š šuserid_domain š .domain.com;
> š š š šuserid_path š š /;
> š š š šuserid_expires š365d;
> š š š šuserid_p3p none;
> }
>


-- 
Boris Dolgov.
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.