Skip to content

Commit

Permalink
update lifetime narrative
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul M. Jones committed Mar 16, 2015
1 parent 5fb8731 commit 930cc18
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,12 @@ implementation of the `RandvalInterface`. We suggest a wrapper around

### Session Lifetime

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:
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:

```
<?php
$session->setCookieParams(array('lifetime' => '1209600'));
?>
```

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

0 comments on commit 930cc18

Please sign in to comment.