By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,949 Members | 890 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,949 IT Pros & Developers. It's quick & easy.

set session cookie expiration date

P: n/a
Hello,

I use PHP session cookie to store an id number.

I know how to set a cookie expiration date using the setcookie function, but
how to set an expiration date when the cookie is created by the
session_start function ?

I know the cookie expires after the session ends, but when I look at my HTTP
headers, the cookie's expiration date created by the session is set to 19
Nov 1981. Something must be wrong.

Thanks for your help,

Christophe

Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Tue, 21 Dec 2004 16:07:21 +0100, Christophe Lance
<ch**************@jcp-marketing-event.ch> wrote:
I use PHP session cookie to store an id number.

I know how to set a cookie expiration date using the setcookie function, but
how to set an expiration date when the cookie is created by the
session_start function ?


http://uk.php.net/manual/en/function...kie-params.php

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #2

P: n/a

I know how to set a cookie expiration date using the setcookie function, but
how to set an expiration date when the cookie is created by the
session_start function ?


http://uk.php.net/manual/en/function...kie-params.php

Thanks Andy for your info.
Christophe

Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.