Skip to content

Commit 930cc18

Browse files
author
Paul M. Jones
committed
update lifetime narrative
1 parent 5fb8731 commit 930cc18

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,12 @@ implementation of the `RandvalInterface`. We suggest a wrapper around
301301

302302
### Session Lifetime
303303

304-
We can set the session lifetime to as long (or as short) as we like, using the `setCookieParams` on _Session_ object. The lifetime is in seconds. To set the session cookie lifetime to two weeks:
304+
We can set the session lifetime to as long (or as short) as we like using the `setCookieParams` on _Session_ object. The lifetime is in seconds. To set the session cookie lifetime to two weeks:
305305

306306
```
307+
<?php
307308
$session->setCookieParams(array('lifetime' => '1209600'));
309+
?>
308310
```
309311

310-
The `setCookieParams` method internally calls [session_set_cookie_params](http://php.net/session_set_cookie_params).
312+
> N.b: The `setCookieParams` method calls [session_set_cookie_params](http://php.net/session_set_cookie_params) internally.

0 commit comments

Comments
 (0)