PHPSESSID shows a date in the past

1,845 views
Skip to first unread message

Cristian Radic-Hunter

unread,
Mar 3, 2018, 6:06:56 AM3/3/18
to Chrome DevTools
Hi,

PHPSESSID is being set to 1969-12-31T23:59:59.000Z for the PHP websites when a session expiry date is not set.

This only happens in Chrome on MacOS. I have checked in other browsers and on Chrome on a Windows system, and it shows "session" rather than a date in the past.

Has anyone come across this issue and how did you solve it?

The websites are developed using PHP5.6 and Zend Framework1

PhistucK

unread,
Mar 3, 2018, 9:26:03 AM3/3/18
to Google Chrome Developer Tools
Did you check the actual HTTP response headers that set this cookie? Are they identical when requested from macOS versus other platforms and the same browser version?


PhistucK

--
You received this message because you are subscribed to the Google Groups "Chrome DevTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-developer-tools+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/1ae1e4de-7a14-445c-b5d3-405f8d20a76a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ad...@listingbackupservice.com

unread,
Apr 17, 2018, 1:51:41 AM4/17/18
to Chrome DevTools
Your Issue lies here.

ini_set('session.cookie_lifetime', 30*60); 
ini_set('session.gc_maxlifetime', 30*60);
 
put that at the top, above session_start
30 x 60seconds = 30mins - so set that to what you want it to be.
Happy Coding
Reply all
Reply to author
Forward
0 new messages