Re: cookie expiring with session
| From: | Sean Burlington | Date: | Fri, 13 Dec 2002 09:47:42 +0000 |
| Subject: | Re: cookie expiring with session | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128136@lists.php.net to get a copy of this message | ||
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? Andreato 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). -- Sean