mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 04:56:03 +03:00
[GH-ISSUE #263] Session not removed from storage on logout when using API #225
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#225
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Yamakasi on GitHub (Feb 10, 2018).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/263
Originally assigned to: @jasonmunro on GitHub.
When you logout using the API the session is not removed from the session storage backend.
We need to call:
from the set sessionhandler
https://github.com/jasonmunro/cypht/blob/master/modules/api_login/api.php#L48
The issue that raises here is that $this->session_key is empty when using the API on logout. So we need to grab it from the still existing cookie again ?
We can let the $session->delete_cookie() on
https://github.com/jasonmunro/cypht/blob/master/modules/api_login/api.php#L51-L52
still exist to make sure the cookie is removed but let this also be managed by the destroy() functions in the session backends.
Better be safe then sorry and check if the cookie still exist before fire ?:
https://github.com/jasonmunro/cypht/blob/master/modules/api_login/api.php#L51-L52
@jasonmunro commented on GitHub (Feb 13, 2018):
I will check it out, my initial thought is that it's a bug/oversight of the api login module set. thanks for the feedback.
@jasonmunro commented on GitHub (Feb 22, 2018):
I don't have a way to test this right now, but this change should fix this:
github.com/jasonmunro/cypht@ae259d77da@Yamakasi commented on GitHub (Feb 25, 2018):
Yes good idea but this still gives an empty $this->session_key in the destroy function as far as I can see.
@Yamakasi commented on GitHub (Mar 7, 2018):
Any update on this ?
@jasonmunro commented on GitHub (Mar 13, 2018):
sorry, not yet. I will check ti out!
@Yamakasi commented on GitHub (Apr 2, 2018):
Do you need to have some extra investigation about this or do you need to go deeper into your code for this ?
@jasonmunro commented on GitHub (Apr 12, 2018):
Sorry, just super busy with work. I promise this is at the top of my Cypht todo list!
@jasonmunro commented on GitHub (Apr 15, 2018):
@Yamakasi Just pushed a fix that works here - please pull the latest git and let me know!
@Yamakasi commented on GitHub (Apr 15, 2018):
Thanks! I will test it out tomorrow (today actualy) I was busy as well so no worries! Thanks, let you know!
@jasonmunro commented on GitHub (Jun 6, 2018):
I believe this is fixed so I'm closing this issue. @Yamakasi if it's not fixed for you when you get to test it out, please re-open this.