Session Handling

Permalink 1 user found helpful
Hi everybody,

I'm wondering which method is the best and if there are some differences between them?

$session = Core::make('session'); 
$session->get('foo');
VS
use Session;
Session::get('foo');


Thanks :)
moosh

moosh
 
moosh replied on at Permalink Best Answer Reply
moosh
Found :)

/**
 * Class Session
 * @package Concrete\Core\Session
 * @deprecated
 */
/**
     * DO NOT USE THIS METHOD
     * This method only exists to enable legacy static methods on the real application instance
     * @deprecated Create the session using $app->make('session');
     */