vendor/symfony/polyfill-php70/Resources/stubs/SessionUpdateTimestampHandlerInterface.php

main
vox-populi/vendor/symfony/polyfill-php70/Resources/stubs/SessionUpdateTimestampHandlerInterface.php history · blame · raw

23 lines · 458 bytes

 1<?php
 2
 3interface SessionUpdateTimestampHandlerInterface
 4{
 5    /**
 6     * Checks if a session identifier already exists or not.
 7     *
 8     * @param string $key
 9     *
10     * @return bool
11     */
12    public function validateId($key);
13
14    /**
15     * Updates the timestamp of a session when its data didn't change.
16     *
17     * @param string $key
18     * @param string $val
19     *
20     * @return bool
21     */
22    public function updateTimestamp($key, $val);
23}