TokenBasedSession.php
1 <?php
2 /**
3  * wCMF - wemove Content Management Framework
4  * Copyright (C) 2005-2020 wemove digital solutions GmbH
5  *
6  * Licensed under the terms of the MIT License.
7  *
8  * See the LICENSE file distributed with this work for
9  * additional information.
10  */
11 namespace wcmf\lib\core;
12 
13 /**
14  * A session that requires clients to send a token for authentication.
15  *
16  * @author ingo herwig <ingo@wemove.com>
17  */
18 interface TokenBasedSession extends Session {
19 
20  /**
21  * Get the name of the auth token header.
22  * @return String
23  */
24  public function getHeaderName();
25 
26  /**
27  * Get the name of the auth token cookie.
28  * @return String
29  */
30  public function getCookieName();
31 }
Session is the interface for session implementations and defines access to session variables.
Definition: Session.php:19
getHeaderName()
Get the name of the auth token header.
getCookieName()
Get the name of the auth token cookie.
A session that requires clients to send a token for authentication.
Core classes.
Definition: namespaces.php:11