<?php require_once('myapp.php'); session_start(); $_myapp = new MyApp('My P4A Application'); $_myapp->setTheme('bluetheme'); $_SESSION['Application'] = $_myapp; $_SESSION['Application']->flush(); ?>