P3P headers / privacy / regenerate session id Problem.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tom_h
Forum Newbie
Posts: 1
Joined: Thu Jul 10, 2008 6:32 am

P3P headers / privacy / regenerate session id Problem.

Post by tom_h »

Hi

To overcome ie6 cookie problems I currently include the following lines on every page (ie not just the one that logs the user in.....?)

session_start();
header('P3P: CP="NOI DSP etc", policyref="http://www.example.com/w3c/p3p.xml"');

This works fine and session vars are set.
What I would like to do is session_regenerate_id() on each page where users are logged in but each time I add that line to the above I get problems in IE6 with cookies not setting. Can anyone enlighten me on how to do it?

session_start
Header(p3p)
session_regenerate_id() - which order do I need to put these in!

Cheers
TomH.
Post Reply