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