mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 21:15:56 +03:00
[GH-ISSUE #104] Cypht does not play nice with other applications #85
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#85
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 @L3CC on GitHub (Aug 10, 2016).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/104
Originally assigned to: @jasonmunro on GitHub.
I was trying to call Cypht from another web app and found that each time Cypht login page was called the other app session's data was lost. Checking the code I found that all session data is cleared by Cypth at login page. I can understand why but I also needed to keep previous session data. I've also found that, when clearing session data, Cypht expects 'session.name' to always be 'PHPSESSIONID', which is not correct. Sometimes is something else. However the solution for both cases is not difficult.
Add the following to lib/ini_set.php:
ini_set('session.name', 'CYPHTID');
Then edit lib/session.php and modules/core/setup.php and replace 'PHPSESSIONID' by 'CYPHTID'.
This way not only existing session data, from other apps, is preserved but Cypht will properly set and clear it's own session data when PHP session name is not standard.
@jasonmunro commented on GitHub (Aug 10, 2016):
Hello! Thanks for the great feedback. I just committed your suggested changes in
github.com/jasonmunro/hm3@ed8385fb3d