The Joomla! Forum ™



Forum rules


Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon May 28, 2012 6:42 pm 
Joomla! Intern
Joomla! Intern

Joined: Thu Feb 28, 2008 2:30 pm
Posts: 50
Location: Canada
Hi,
I am trying to integrate SWFUpload into Joomla (customized implementation, and this is why cannot use extensions with swfupload).

I am passing through SWFUpload the ID if SESSION and on server side I need to get all data of $_SESSION for the passed ID.


This is the code I have (direct script access):
based on this tutorial - http://jeffbrand.net/programming/using- ... sh-plugin/
Code:
if (isset($_POST["PHPSESSID"])) {
    session_write_close();             // End the previously-started session
    session_id($_POST["PHPSESSID"]);   // Set the new session ID
    session_start();                   // Start it
}


and here is the error I get in SWFUpload debug window:

Code:
Fatal error: session_start(): Failed to initialize storage module: user (path: /var/lib/php5) in /srv/www/htdocs_appsrv/.../incoming.php on line 19


Line 19 is
Code:
session_start();


How can I restart a session having session ID and then grab all needed data from $_SESSION?

Please help.
Thank you.

_________________
www.creationism.tk - Creationism Proofs and Facts


Top
 Profile  
 
PostPosted: Tue May 29, 2012 2:20 pm 
Joomla! Intern
Joomla! Intern

Joined: Thu Feb 28, 2008 2:30 pm
Posts: 50
Location: Canada
Thanks to Jesus Christ, I got it working with the following code:
Quote:
if (isset($_REQUEST["PHPSESSID"])) {
session_write_close(); // End the previously-started session
$jd = new JSessionStorageDatabase();
session_id($_POST["PHPSESSID"]);
session_start();
}

var_dump($_SESSION);


Please also see this tutorial:
http://pribadidewa.wordpress.com/2008/0 ... in-joomla/

_________________
www.creationism.tk - Creationism Proofs and Facts


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 



Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group