Overview
SHA1:1e74139b60a93d85f4958e2abd73497dd0ed6588
Date: 2018-03-20 11:10:12
User: bohwaz
Comment:Cookie sur le domaine de l'admin
Timelines: family | ancestors | descendants | both | trunk | stable
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2018-04-19
11:35
[724e078f75] Le cookie de login doit être sur la racine, pas sur /admin/ sinon l'accès aux fichiers ne marche plus ! (user: bohwaz, tags: trunk, stable)
2018-03-20
11:10
[1e74139b60] Cookie sur le domaine de l'admin (user: bohwaz, tags: trunk, stable)
11:06
[6c563e7636] Fix /admin en double dans les URL (user: bohwaz, tags: trunk, stable)
Changes

Modified src/include/lib/Garradin/Membres/Session.php from [3ccc485955] to [9a3075adf1].

22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
	protected $cookie_name = 'gdin';
	protected $remember_me_cookie_name = 'gdinp';
	protected $remember_me_expiry = '+3 months';

	// Extension des méthodes de UserSession
	public function __construct()
	{
		$url = parse_url(WWW_URL);

		parent::__construct(DB::getInstance(), [
			'cookie_domain' => $url['host'],
			'cookie_path'   => $url['path'],
			'cookie_secure' => (\Garradin\PREFER_HTTPS >= 2) ? true : false,
		]);
	}







|







22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
	protected $cookie_name = 'gdin';
	protected $remember_me_cookie_name = 'gdinp';
	protected $remember_me_expiry = '+3 months';

	// Extension des méthodes de UserSession
	public function __construct()
	{
		$url = parse_url(ADMIN_URL);

		parent::__construct(DB::getInstance(), [
			'cookie_domain' => $url['host'],
			'cookie_path'   => $url['path'],
			'cookie_secure' => (\Garradin\PREFER_HTTPS >= 2) ? true : false,
		]);
	}