I can not get cookies working on Personal Web Server4 from NT Option Pack and PHP3...
page1:
setcookie('user_id', ...);
Header('Locationage2')
page2:
if (Isset()) {
...
}
page2 shows that cookie os not set.
I can not get cookies working on Personal Web Server4 from NT Option Pack and PHP3...
page1:
setcookie('user_id', ...);
Header('Locationage2')
page2:
if (Isset()) {
...
}
page2 shows that cookie os not set.
Hi,
You use bothe setcookie() and header() in one page, which means that two headers should be sent, which isn't possible.
Do not use any other header or IO function (like include()) when you want to set a cookie.
Good luck, Peter
I need to set a cookie and jump to another page..How else can I do this?