Extending cookie expiration ?

CastleCops -> Sidki - Proxomitron

Author: ToppyLocation: Belgium PostPosted: Sun Jun 29, 2008 2:27 am    Post subject: Extending cookie expiration ?

Hi,

Sorry for bothering once more, but it is somehow possible (using sidki's config) to extend non-session cookies to the year 2012 for example ?

Right now, more and more forums make you login again after only a few days and it would be great to have the cookies last longer.

TIA! Wink

Author: wheneverLocation: China PostPosted: Sat Jul 05, 2008 2:37 pm    Post subject:

Try adding below line to CookieValues.ptxt:

Code:

$URL(http://your.target.site/)expires\=[^;]+      $SET(a=$GET(a)\0\1expires=Mon, 20-Jul-2018 23:59:59 GMT)

Author: ToppyLocation: Belgium PostPosted: Sat Jul 05, 2008 9:22 pm    Post subject:

Once again, thanks a lot whenever.

Could it be refined to extend ALL non-session cookies, no matter on which site ?

Author: ToppyLocation: Belgium PostPosted: Sat Jul 05, 2008 9:53 pm    Post subject:

Ok, I was able to refine it, so it only happens when the url start with forum(s), please correct me if i did something wrong Smile

Code:
$URL(http://forum(s|).*)expires\=[^;]+      $SET(a=$GET(a)\0\1expires=Mon, 20-Jul-2018 23:59:59 GMT)

Author: ToppyLocation: Belgium PostPosted: Sat Jul 05, 2008 10:52 pm    Post subject:

Sorry whenever, but I think I will once again need your help.

Your filter worked great, my refinement seems to work too, but I would like it to make a header filter out of it that targets all urls starting with forum(s).* and some kind of option that I could add exclusions in the IncludeExclude-U.ptxt

So a filter that will extend non-sessiononly cookies for all URLs starting with forum(s) minus the exclusing that I could perhaps add in IncludeExclude-U.ptxt

So I could add this to the IncludeExclude-U.ptxt file :
Code:

## Do NOT extend cookies till 2012      $SET(0=d_noextendcookies.)
##
zappybaby.be  $SET(0=d_noextendcookies.)


... so the cookies would not get extended on the URL forum.zappybaby.be

But how do I do the header filter for that ? Confused
(Sorry, I've studied the filters and such so much, but the code is so extremely chinese, I will be a newbie for ever. Sad

I've tried the header filter like this :
Code:

In = TRUE
Out = FALSE
Key = "Set-Cookie: TEST Extend forum cookies     (Toppy) (In)"
URL="(^$TST(keyword=*.d_noextendcookies.*))forum(s|).*"
Match = "\1expires\=[^;]+\2"
Replace = "\1expires\=Mon, 20-Jul-2018 23:59:59 GMT\2"


but ... (as expected) no luck Sad

Author: wheneverLocation: China PostPosted: Sun Jul 06, 2008 3:04 pm    Post subject:

Does below entry work?
Code:

forum.zappybaby.be  $SET(0=d_noextendcookies.)



CastleCops -> Sidki - Proxomitron

All times are GMT

Page 1 of 1


Powered by phpBB © 2001 phpBB Group