Skip to content

Commit 4a8ad34

Browse files
committed
(TXT) - Refines text for post.
1 parent 61fc4f1 commit 4a8ad34

4 files changed

+2
-2
lines changed

_posts/2022-03-30-drupal-tips-changing-session-lifetime-for-users.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Since it is GC, the session value may be discarded and not compulsory. If a GC a
6161
This value is for the browser: This is the absolute maximum time till which a browser can keep this cookie active. A 0 value here will means immediate or when the browser will be closed.
6262

6363

64-
| ![Cookie values for creation and expiration dats]({{ site.baseurl }}/images/davidjguru_drupal_8_9_changing_session_lifetime_for_users_2.png) |
64+
| ![Cookie values for creation and expiration dates]({{ site.baseurl }}/images/davidjguru_drupal_8_9_changing_session_lifetime_for_users_2.png) |
6565
| :-------------------------------------------------------------------------------------------------------------------: |
6666
| *Cookie values for creation and expiration dates* |
6767

@@ -120,7 +120,7 @@ $options['gc_maxlifetime'] = 3600;
120120

121121
Session data & Garbage Collector & Cron
122122

123-
The time for session was set to 1 hour (in the feature-working branch ST8-467). But this only let available the session data for the Garbage Collector of Drupal/PHP. It means that from 1 hour the session can be opened until the Garbage Collector was executed. Who’s executing the Garbage Collector? esentially, the cron in system.
123+
The time for session was set to 1 hour. But this only let available the session data for the Garbage Collector of Drupal/PHP. It means that from 1 hour the session can be opened until the Garbage Collector was executed. Who’s executing the Garbage Collector? esentially, the cron in system.
124124

125125
The “Automated Cron” core module was enabled and set to 1 hours. It means that really, the inactive sessions (more than 1 hour without activity) will be deleted every 1 hour now, just when cron runs and launches the Garbage Collector. Useful Drupal contrib modules we can use for more control over the session timing and roles:
126126

Loading
Loading
Loading

0 commit comments

Comments
 (0)