PHP Warning:  session_start(): Failed to decode session object. Session has been destroyed in /site_path/include/class.ostsession.php on line 86, referer: https://site_url/scp/PHP Stack trace:, referer: https://site_url/scp/PHP   1. {main}() /site_path/scp/tickets.php, referer: https://site_url/scp/PHP   2. require() /site_path/scp/tickets.php, referer: https://site_url/scp/PHP   3. require_once() /site_path/scp/staff.inc.php, referer: https://site_url/scp/PHP   4. osTicket:() /site_path/main.inc.php, referer: https://site_url/scp/PHP   5. osTicket->osTicket() /site_path/include/class.osticket.php, referer: https://site_url/scp/PHP   6. osTicketSession:() /site_path/include/class.osticket.php, referer: https://site_url/scp/PHP   7. osTicketSession->osTicketSession() /site_path/include/class.ostsession.php, referer: https://site_url/scp/PHP   8. session_start() /site_path/include/class.ostsession.php, referer: https://site_url/scp/This error happens when I go to the Advanced Search and filter the closed tickets for a certain department. This search throws more than 6.000 results. When I try to see these tickets, this error happens and it shows me ALL the open tickets instead (default page).Do you think that may have something to do with the error?

php version.jpg

Please help us to help you by reading and following the posting guidelines located in this thread: Please read before requesting assistance.  The more information you give us the better we will be able to assist you. Thank you.

Sorry, several things I wrote didn't come out in the first message, as the file attachment with the Dashboard Information. Let's try this time.I was saying:"Hi, I'm having the same issue concerning this topic:http://forum.osticket.com/d/discussion//session-destroyed-warningBut I'm using PHP 5.6! This is the error log:"And all text from the first message.

osti.jpg

We have damn near the same exact setup except I have osTicket v1.10 and PHP 7. I cannot replicate your issue on my installation but you should try to add/replace the following in your php.ini:*Note: Make a backup of your php.ini just in case something happens and you need to revert back to original settings.*- session.save_path = "/var/lib/php/sessions" (or commented out; mine is commented out)(Make sure this directory is fully writable: chmod -R 777 /var/lib/php/sessions)- session.use_cookies = 1- session.name = PHPSESSID- session.cookie_lifetime = 0 (or however long you want in seconds)- session.cookie_path = /- session.cookie_domain = (yes this equals nothing; this is so it's valid on all domains)- session.serialize_handler = phpOther Helpful Bits:- session.gc_probability = 1- session.gc_divisor = 100- session.gc_maxlifetime = 1440- session.cache_expire = 180

This will ensure your PHP is configured to handle sessions properly. After you do this restart your apache and retest to see if the issue still occurs.

Hi Kevin, thanks for your response.My php.ini was almost just like you said. I tried a few modifications, but still not working..

    16 days later

    @[deleted] you can try this pull request here:https://github.com/osTicket/osTicket/pull/3928

    6 years later

    I am still using v1.9.x and had the exact same error on Advanced Ticket Search as reported by mailenh
    I know it's session variable getting overflow but was wondering how to fix it in OST v1.9.x.
    Finally I found the solution and would post here for sharing.

    For database table ost_session, alter datatype of column session_data, change from BLOB to MEDIUMBLOB.
    Then the session variable won't get blown up and Advanced Ticket Search then works when your search result would return thousands of tickets.

    Write a Reply...