Session IDs are saved in URLs or cookies that the same expiration time with the session. You can set expires of the cookies for session_cookie_expires
.
Set up methods of saving session IDs with the following attributes.
Attribute | Default | Description |
---|---|---|
store_in_url |
true |
Stores session IDs in URLs. |
store_in_cookie |
true |
Stores session IDs in cookies. |
session_cookie_expires |
604800 (a week) |
Expiry date of cookie for session. If you set the value to nil, session cookies will be invalid when closing browser. |