Andrea wrote:
I urgently need to store a cookie that expires with session. This cookie has
to be read by a section written in jsp, therefore I don't think I can use
$_SESSION variables.

Can anyone help me?


to set a cookie that expires with the session do

setcookie (name, value)

this cookie can then also be read by jsp (as long as it is on the same domain)

and you are right that the jsp will not be able to read related $_SESSION variables (unless it can access the file/database where php is storing that information).



PHP General Mailing List (
To unsubscribe, visit:

Reply via email to