CastleCops, Internet Crime Fighters
Need help? Click here to register for free! Absolutely zero advertisements on this site!

$9736.22 of $21422.68
left sidedonated so farneed $11686.46 donated to reach our goalright side, our goal
Help CastleCops serve the community on new servers, Donate Here to reach our goal.

Donation/Premium
spacer
block bottom
Security Central
spacer
· Home
· PIRT/Fried Phish
· MIRT
· SIRT
· Deutsch
· Wiki
· Newsletter
· O16/ActiveX
· CLSID List
· Contest2007
· Downloads
· Feedback (send)
· Forums
· HijackThis
· Hijacktrend
· LSPs
· My Downloads
· O18
· O20
· O21
· O22
· O23
· O9
· Premium
· Private Messages
· Proxomitron
· Reviews
· Search
· StartupList
· Stories Archive
· Submit News
· WsIRT
· Your Account
· Acceptable Use Policy
block bottom
Survey
spacer
Was 2007 a good year?

Yes it was a wonderful year
Yes, but there is always room for improvement
Status quo
It was a challenge
Other (leave comment)



Results
Polls

Votes: 940
Comments: 25
block bottom
spacer spacer

Extending cookie expiration ?

 
Post new topic   Reply to topic       All -> FavForums -> Sidki - Proxomitron [del.icio.us!] [digg it!] [reddit!]
View previous topic :: View next topic  
Author Message
Toppy

Sergeant
Sergeant


Joined: Mar 09, 2006
Posts: 138
Location: Belgium

PostPosted: Sun Jun 29, 2008 2:27 am    Post subject: Extending cookie expiration ?
Reply with quote

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

Back to top
View users profile Send private message
whenever

Lieutenant
Lieutenant


Joined: May 18, 2007
Posts: 160
Location: China

PostPosted: Sat Jul 05, 2008 2:37 pm    Post subject:
Reply with quote

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)

Back to top
View users profile Send private message
Toppy

Sergeant
Sergeant


Joined: Mar 09, 2006
Posts: 138
Location: Belgium

PostPosted: Sat Jul 05, 2008 9:22 pm    Post subject:
Reply with quote

Once again, thanks a lot whenever.

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

Back to top
View users profile Send private message
Toppy

Sergeant
Sergeant


Joined: Mar 09, 2006
Posts: 138
Location: Belgium

PostPosted: Sat Jul 05, 2008 9:53 pm    Post subject:
Reply with quote

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)

Back to top
View users profile Send private message
Toppy

Sergeant
Sergeant


Joined: Mar 09, 2006
Posts: 138
Location: Belgium

PostPosted: Sat Jul 05, 2008 10:52 pm    Post subject:
Reply with quote

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

Back to top
View users profile Send private message
whenever

Lieutenant
Lieutenant


Joined: May 18, 2007
Posts: 160
Location: China

PostPosted: Sun Jul 06, 2008 3:04 pm    Post subject:
Reply with quote

Does below entry work?

Code:

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

Back to top
View users profile Send private message
Display posts from previous:   
Post new topic   Reply to topic       All -> FavForums -> Sidki - Proxomitron All times are GMT
Page 1 of 1

 
Quick Reply:
Username: 

Quote the last message
Attach signature (signatures can be changed in profile)
 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001 phpBB Group
spacer spacer