Session Issue in Joomla 1.7

rsmalee

New Member
I have A joomla website in version 1.7.0 .In that I have a Custom php Code on the root of the Server. The Custom Php Code(i.e upload.php) is used to upload images on the server,edit it and delete it .All The Above functionality is Working Fine. But the Problem is that When my form Action Goes To That Particular Page of custom php then the Session Is Lost in Joomla 1.7.0 .Then The session of the joomla is lost.\[code\]Below is my Code For The Session.define( '_JEXEC', 1 );define( 'JPATH_BASE', realpath(dirname(__FILE__).'/../..' ));define( 'DS', DIRECTORY_SEPARATOR );require_once ( ausrwc.com.au .DS.'includes'.DS.'defines.php' );`enter code here`require_once ( ausrwc.com.au .DS.'includes'.DS.'framework.php' );$mainframe =& JFactory::getApplication('site');$mainframe->initialise();$session =& JFactory::getSession();$session->set('name', "value");$session =& JFactory::getSession();echo $session->get('name');Thanks Any help will be appreciated.\[/code\]
 
Back
Top