<?php
define( '_JEXEC', 1 );
define( '_VALID_MOS', 1 );
// JPATH_BASE should point to Joomla root directory
// if you app is placed into a subfolder in Joomla root, the path will look like dirname(__FILE__) . '/..'
define( 'JPATH_BASE', realpath(dirname(__FILE__) .'/..' ) );
define( 'DS', DIRECTORY_SEPARATOR );
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
$mainframe =& JFactory::getApplication('site');
$mainframe->initialise();
$user =& JFactory::getUser();
$session =& JFactory::getSession();
echo $user->username;
?>
session_cache_limiter('none');
session_start();
ini_set('session.cookie_domain', '.yoururl.com');
session_cache_limiter('none');
session_start();
$this->cookies[$name]['domain'] = $domain;
$this->cookies[$name]['domain'] = '.yoururl.com';
Time to create page: 0.061 seconds