developer.jelix.org is not used any more and exists only for
history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
Opened 13 years ago
Closed 13 years ago
#435 closed bug (fixed)
Path cookie session persistant & url significant
Reported by: | tbosviel | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | Jelix 1.0.1 |
Component: | jelix:auth | Version: | 1.0 |
Severity: | normal | Keywords: | cookie path url significant |
Cc: | Blocked By: | ||
Blocking: | Documentation needed: | ||
Hosting Provider: | Php version: |
Description
Example
L'action qui execute jAuth::login() est appelée avec l'url index.php?module=users&action=auth:login, jAuth::login() crée un cookie avec le path "/".
L'action qui execute jAuth::logout() est appelée avec l'url /users/logout.html (url significant), jAuth::logout() crée un cookie avec le path "/users/". Résultat, le cookie créé avec jAuth::login() n'est pas écrasé, l'utilisateur n'est pas déconnecté.
Solutions
Il faudrait soit forcer la fonction setcookie avec le path "/" ou laisser au développeur le choix de spécifier un path dans le fichier de configuration du plugin auth.
Change History (2)
comment:1 Changed 13 years ago by tbosviel
- Summary changed from Path cookie session persistante & url significant to Path cookie session persistant & url significant
comment:2 Changed 13 years ago by laurentj
- Milestone set to Jelix 1.0.1
- Priority changed from high to normal
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
Corrigé dans le trunk et la branche 1.0.x.
Un paramètre dans la configuration du plugin a été ajouté : persistant_cookie_path.
On peut le laisser à vide (recommandé et valeur par defaut), le chemin du cookie sera alors la valeur de basePath dans la config générale.