!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/vendor/symfony/http-foundation/Session/Storage/Handler/   drwxr-xr-x
Free 13.03 GB of 57.97 GB (22.48%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     MigratingSessionHandler.php (3.16 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\HttpFoundation\Session\Storage\Handler;

/**
 * Migrating session handler for migrating from one handler to another. It reads
 * from the current handler and writes both the current and new ones.
 *
 * It ignores errors from the new handler.
 *
 * @author Ross Motley <ross.motley@amara.com>
 * @author Oliver Radwell <oliver.radwell@amara.com>
 */
class MigratingSessionHandler implements \SessionHandlerInterface\SessionUpdateTimestampHandlerInterface
{
    private 
$currentHandler;
    private 
$writeOnlyHandler;

    public function 
__construct(\SessionHandlerInterface $currentHandler\SessionHandlerInterface $writeOnlyHandler)
    {
        if (!
$currentHandler instanceof \SessionUpdateTimestampHandlerInterface) {
            
$currentHandler = new StrictSessionHandler($currentHandler);
        }
        if (!
$writeOnlyHandler instanceof \SessionUpdateTimestampHandlerInterface) {
            
$writeOnlyHandler = new StrictSessionHandler($writeOnlyHandler);
        }

        
$this->currentHandler $currentHandler;
        
$this->writeOnlyHandler $writeOnlyHandler;
    }

    
/**
     * @return bool
     */
    
public function close()
    {
        
$result $this->currentHandler->close();
        
$this->writeOnlyHandler->close();

        return 
$result;
    }

    
/**
     * @return bool
     */
    
public function destroy($sessionId)
    {
        
$result $this->currentHandler->destroy($sessionId);
        
$this->writeOnlyHandler->destroy($sessionId);

        return 
$result;
    }

    
/**
     * @return bool
     */
    
public function gc($maxlifetime)
    {
        
$result $this->currentHandler->gc($maxlifetime);
        
$this->writeOnlyHandler->gc($maxlifetime);

        return 
$result;
    }

    
/**
     * @return bool
     */
    
public function open($savePath$sessionName)
    {
        
$result $this->currentHandler->open($savePath$sessionName);
        
$this->writeOnlyHandler->open($savePath$sessionName);

        return 
$result;
    }

    
/**
     * @return string
     */
    
public function read($sessionId)
    {
        
// No reading from new handler until switch-over
        
return $this->currentHandler->read($sessionId);
    }

    
/**
     * @return bool
     */
    
public function write($sessionId$sessionData)
    {
        
$result $this->currentHandler->write($sessionId$sessionData);
        
$this->writeOnlyHandler->write($sessionId$sessionData);

        return 
$result;
    }

    
/**
     * @return bool
     */
    
public function validateId($sessionId)
    {
        
// No reading from new handler until switch-over
        
return $this->currentHandler->validateId($sessionId);
    }

    
/**
     * @return bool
     */
    
public function updateTimestamp($sessionId$sessionData)
    {
        
$result $this->currentHandler->updateTimestamp($sessionId$sessionData);
        
$this->writeOnlyHandler->updateTimestamp($sessionId$sessionData);

        return 
$result;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.005 ]--