Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mod_usertrack CookiesExpire set but serving session cookies

Status
Not open for further replies.

turtles

Programmer
Mar 15, 2005
2
GB
I want to track individual users, so have turned on mod_usertrack, and given the following instructions:

<IfModule mod_usertrack.c>

CookieTracking on
CookieExpires "3 months"

CookieStyle RFC2109
CookieName fmav

</IfModule>

It all works fine, but the cookies are session cookies which expire when the browser closes, and not of the type that I would like to last for 3 months. What have I missed or not understood?

TIA
 
For anyone with a similar problem, here's how I sorted it. As any fool (except me) knows, IE6 downgrades cookies to session cookies if there is no compact privacy policy in the header. You have to implement a p3p privacy policy - go to to find out how. There is a tool for making the files at Validator is at You get into a cycle of testing etc with the validator until you have everything in the right place. To add the p3p: header, you turn on mod_headers and something like

<IfModule mod_headers.c>

Header append P3P: 'CP="ALL DSP COR CURa ADMa DEVa TAIa PSAa PSDa OUR IND UNI CO
M NAV INT", policyref="/w3c/p3p.xml"'

</IfModule>

to an .htaccess or your virtual server config. NB the policyref= has to be at /w3c/p3p.xml. The CP= bit comes from the compact policy that you can save as a text file.

Once you have made a policy that is compliant, you need to check whether it is compliant with what ie6 needs to allow cookies. A good tool is privacy bird ( You tell it your settings (which should be medium). It twitters if all is ok and complains if not.

Whew.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top