Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom session variable disappear after several days but user still logged in #2081

Closed
aRandomKiwi opened this issue Nov 10, 2016 · 2 comments
Labels

Comments

@aRandomKiwi
Copy link

Steps to reproduce

  1. Set some session data like this :
    $this->session->set('tokendata',$token);

Expected behaviour

The session variable can always be accessible while the session is alive while the user logged out.

Actual behaviour

The session variable can be accessible everytime, but after let open the session several days or/and when the host computer hibernate and resume the variable is deleted, but the user is still logged in in nextcloud (the session is alive but the variable is out...)

Server configuration

Operating system:
Debian 8.6

Web server:
Apache 2.4

Database:
Mysql 5.5.52

PHP version:
PHP 5.6.24

Nextcloud version: (see Nextcloud admin page)
10.0.1 (fresh install)

Where did you install Nextcloud from:
from official website

@nickvergessen
Copy link
Member

@LukasReschke

@MorrisJobke
Copy link
Member

I guess we renew the session by the cookie and therefore delete the existing session and create a new one (to avoid that the same session could still be hijacked).

If you want to store some info in your app: put it in the memcache or the database instead. We do not support to transfer data that is stored in the session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants