Overview
Comment:Le cookie de login doit être sur la racine, pas sur /admin/ sinon l'accès aux fichiers ne marche plus !
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA1: 724e078f7547bc12a497f08742e323ff88b702f1
User & Date: bohwaz on 2018-04-19 11:35:00
Other Links: manifest | tags
Context
2018-04-19
11:35
Cette ligne ne sert à rien check-in: a004d1e158 user: bohwaz tags: trunk
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
Changes

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

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
	// 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,
		]);
	}

	protected function getUserForLogin($login)
	{
		$champ_id = Config::getInstance()->get('champ_identifiant');







|







26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
	// Extension des méthodes de UserSession
	public function __construct()
	{
		$url = parse_url(ADMIN_URL);

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

	protected function getUserForLogin($login)
	{
		$champ_id = Config::getInstance()->get('champ_identifiant');