access and reuse session outside joomla - Joomla! Forum - community, help and support


i have installed joomla on server , have script uses $_session variable access data logged in user. way can access session using built in code joomla

code: select all

define( '_jexec', 1 );
define( 'ds', directory_separator );
define( 'jpath_base', "e:\\wamp\\www\\log\\" );

require_once ( jpath_base . ds . 'includes' . ds . 'defines.php' );
require_once ( jpath_base . ds . 'includes' . ds . 'framework.php' );

$mainframe = & jfactory::getapplication( 'site' );
//$mainframe->initialise();
//$session = & jfactory::getsession();


what want use session variable normal script does. noticed session variables deleted running joomla code. not acceptable because users want have joomla on front end , basic php scripts in different folders.

where session variable deleted , how can have both joomla working + session ?

i have been searching day solution minor problem without success. forcing users add joomla code php scripts have access joomla session wrong.

so other users: if want use joomla alone use joomla. if chance want use script: cart, amfphp, basic php script uses joomla session, drop joomla , use framework not disable php basic session.





Comments