error - Session expired, please login again

  • Hello!

    Adminer do not work for me. Аfter each login i got error:
    Session expired, please login again


    What's wrong? 8(

    Please help me…

    tnx, Sergey

  • any help from adminer or anybody?

  • Jakub Vrána
    Jakub Vrána

    Please always report the software you are using. Which webserver and which version of PHP are you using? What's your php.ini setting of session.* variables? Do session variables work in other scripts?

    Can you please also try the development version available in Git? Download is available at;a=snapshot;h=HEAD;sf=tgz

  • Trevor Morse
    Trevor Morse

    I am having the same problem.

    Adminer version: 2.3.2
    PHP version: 5.3.2
    PHP session.* vars:

    Session Support enabled
    Registered save handlers files user memcache
    Registered serializer handlers php php_binary wddx

    Directive Local Value Master Value
    session.auto_start Off Off
    session.bug_compat_42 Off Off
    session.bug_compat_warn Off Off
    session.cache_expire 180 180
    session.cache_limiter nocache nocache
    session.cookie_domain no value no value
    session.cookie_httponly Off Off
    session.cookie_lifetime 0 0
    session.cookie_path / /
    session.cookie_secure Off Off
    session.entropy_file no value no value
    session.entropy_length 0 0
    session.gc_divisor 1000 1000
    session.gc_maxlifetime 1440 1440
    session.gc_probability 1 1
    session.hash_bits_per_character 5 5
    session.hash_function 0 0 PHPSESSID PHPSESSID
    session.referer_check no value no value
    session.save_handler files files
    session.save_path /var/lib/php/session /var/lib/php/session
    session.serialize_handler php php
    session.use_cookies On On
    session.use_only_cookies On On
    session.use_trans_sid 0 0

  • Trevor Morse
    Trevor Morse

    Found this error at the bottom of the page were I couldn't see it without scrolling:

    Warning: Unknown: open(/var/lib/php/session/sess_halempt0sbmccobeat8k5rpe52, O_RDWR) failed: Permission denied (13) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0

    Then realized I had just changed the username/group that apache gets run as a few days ago. So it can be fixed by making sure the user apache is run as has permission to your session.save_path

  • Thanks a lot!

    Indeed, I was experiencing this issue with the Session Expires error and if I were to login with permanent login selected, then it would login but when creating a database i'd get the Invalid CSRF token. Send the form again. error. But this got fixed after I created the session.save_path directory.

    Thank you again !