Overview
Comment:Fix : si LOCAL_LOGIN était non null, la session était recréée à chaque fois
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA1: 1cf1a5316ea5aada9a944a72f133b5282f04f4b0
User & Date: bohwaz on 2018-07-11 11:00:16
Other Links: manifest | tags
Context
2018-07-11
19:49
Corrige gestion du LOCAL_LOGIN dans le cas où le cookie n'est pas vide mais la session plus valide check-in: 3ddbc77ebb user: bohwaz tags: trunk, stable
11:00
Fix : si LOCAL_LOGIN était non null, la session était recréée à chaque fois check-in: 1cf1a5316e user: bohwaz tags: trunk, stable
10:55
Mise à jour liste dépendances check-in: 40f71efefe user: bohwaz tags: trunk, stable
Changes

Modified src/include/lib/Garradin/Membres/Session.php from [62a9e3085b] to [568d20b57b].

109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
	{
		return $this->db->delete('membres_sessions', $this->db->where('id_membre', $user_id));
	}

	// Ajout de la gestion de LOCAL_LOGIN
	public function isLogged()
	{
		if (empty($_SESSION['user']) && defined('\Garradin\LOCAL_LOGIN')
			&& is_int(\Garradin\LOCAL_LOGIN) && \Garradin\LOCAL_LOGIN > 0)
		{
			$this->create(\Garradin\LOCAL_LOGIN);
		}

		return parent::isLogged();
	}







|







109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
	{
		return $this->db->delete('membres_sessions', $this->db->where('id_membre', $user_id));
	}

	// Ajout de la gestion de LOCAL_LOGIN
	public function isLogged()
	{
		if (empty($_COOKIE[$this->cookie_name]) && defined('\Garradin\LOCAL_LOGIN')
			&& is_int(\Garradin\LOCAL_LOGIN) && \Garradin\LOCAL_LOGIN > 0)
		{
			$this->create(\Garradin\LOCAL_LOGIN);
		}

		return parent::isLogged();
	}