Website generation with Couscous

This commit is contained in:
Milos Stojanovic
2019-06-18 18:37:41 +02:00
parent 67e392dd88
commit 86a6e4db44
6 changed files with 16 additions and 15 deletions

View File

@@ -110,7 +110,7 @@
`sess_time` int(10) unsigned NOT NULL,
PRIMARY KEY (`sess_id`)
) CHARSET=utf8 COLLATE=utf8_bin;</code></pre>
<p>Then, open <code>configuration.php</code> and update Auth handler under section <code>services</code> to something like this:</p>
<p>Then, open <code>configuration.php</code> and update Session handler to:</p>
<pre><code> 'Filegator\Services\Session\SessionStorageInterface' =&gt; [
'handler' =&gt; '\Filegator\Services\Session\Adapters\SessionStorage',
'config' =&gt; [
@@ -127,9 +127,9 @@
],
],
</code></pre>
<p>Don't forget to enter correct mysql username, password, and database.</p>
<p>Don't forget to enter correct database details.</p>
<h2 id="tweaking-session-options">Tweaking session options</h2>
<p>The underying Symfony's session <a href="https://github.com/symfony/symfony/blob/4.4/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php">component</a> accepts array of options.
<p>The underying <a href="https://github.com/symfony/symfony/blob/4.4/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php">session component</a> accepts array of options.
For example you can pass <code>cookie_lifetime</code> parameter to extend default session lifetime:</p>
<pre><code> 'Filegator\Services\Session\SessionStorageInterface' =&gt; [
'handler' =&gt; '\Filegator\Services\Session\Adapters\SessionStorage',