Book said, persistent cookie stay on client machine till it expires. session cookie will be gone after browser closed.
i tried it, like:
setcookie("name", "value"); // before any output
but after closing browser and restart, it is still there
(from print_r($_COOKIE)).
i tried couple of different browsers like safari, chrome, firefox, it is all like that. only eclipse is different:)
so, are all current browsers not following that "rule" ? or there is some default time-out for a session cookie i am not aware of?
thanks.
EDIT:
I checked in firebug it said:
Name Value Domain Expires
name value localhost session