Security / Session Issues in WPG2 3.05/6

ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1022
Posted: Tue, 2008-05-06 23:58

I have been seeing a number of posts with security denied or other session related issues. I suspect the issue is around the session handling introduced in WPG2 3.05 which was a required change to ensure G2 was correctly setting the sessions..

For those who are comfortable with editing files.. Please to try the following for me..

edit the wpg2embed.ini file in the wpg2 directory..

You will see the following..

// Gallery2 Session Handling - Stop Temp ID's Fix Bug #43
global $gallery;
$g2_session =&$gallery->getSession();
$g2_session->start();
$g2_session->doNotUseTempId();

Change this to

// Gallery2 Session Handling - Stop Temp ID's Fix Bug #43
//global $gallery;
//$g2_session =&$gallery->getSession();
//$g2_session->start();
//$g2_session->doNotUseTempId();

save and check to see if the issue is still occurring..

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

Login or register to post comments