Nick
Nick

Reputation: 189

cakephp v2.3.7 cookie expire notation issue

I am using cakePHP v2.3.7,

I have the following issue, I have written in my app/Config/core.php file the line

'timeout' => 44640, // 31 days.

Why is it not possible to put here let's say: '1 month' or '1 year' ?
Does it need to be a numeric value only?

Any help appreciated.

Upvotes: 0

Views: 74

Answers (2)

Marcelo Aymone
Marcelo Aymone

Reputation: 293

You can set an string compatible with php strtotime() function.

Example: '+1 Year'

Upvotes: 0

Alex Stallen
Alex Stallen

Reputation: 2252

Because that is just how it works, it's in minutes. Why is it an issue?

Upvotes: 3

Related Questions