<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[TinyMCE Forum - Using custom session object breaks FileManager?]]></title>
		<link>http://www.tinymce.com/forum/viewtopic.php?id=25227</link>
		<description><![CDATA[The most recent posts in Using custom session object breaks FileManager?.]]></description>
		<lastBuildDate>Wed, 23 Mar 2011 09:29:34 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Using custom session object breaks FileManager?]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=88038#p88038</link>
			<description><![CDATA[<p>Should work with custom session logic. Some of the CMS integrations we have uses that.</p>]]></description>
			<author><![CDATA[dummy@example.com (spocke)]]></author>
			<pubDate>Wed, 23 Mar 2011 09:29:34 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=88038#p88038</guid>
		</item>
		<item>
			<title><![CDATA[Re: Using custom session object breaks FileManager?]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=88018#p88018</link>
			<description><![CDATA[<p>Hmm, my session object does return some data, namely the data stored in the database for the specified session (which seems logical). It&#039;s too bad TinyMCE and my session object don&#039;t play nicely. I&#039;ve now added a redirect to my login procedure to set the TinyMCE session information without using my session object. Not ideal, but it&#039;s working now. Thanks for trying to help.</p>]]></description>
			<author><![CDATA[dummy@example.com (TorinNL)]]></author>
			<pubDate>Wed, 23 Mar 2011 06:20:21 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=88018#p88018</guid>
		</item>
		<item>
			<title><![CDATA[Re: Using custom session object breaks FileManager?]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=87904#p87904</link>
			<description><![CDATA[<p>If it contains any form of output it will break json-rpc calls. So if you have any output in your session file it will fail. Could also be some PHP errors that causes the problem can&#039;t be sure from here.</p>]]></description>
			<author><![CDATA[dummy@example.com (spocke)]]></author>
			<pubDate>Mon, 21 Mar 2011 18:34:01 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=87904#p87904</guid>
		</item>
		<item>
			<title><![CDATA[Re: Using custom session object breaks FileManager?]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=87897#p87897</link>
			<description><![CDATA[<p>In the class constructor of my session object I&#039;ve placed the following code:</p><div class="codebox"><pre><code>// Register this object as the session handler
session_set_save_handler( 
    array( &amp;$this, &quot;sess_open&quot; ), 
    array( &amp;$this, &quot;sess_close&quot; ),
    array( &amp;$this, &quot;sess_read&quot; ),
    array( &amp;$this, &quot;sess_write&quot;),
    array( &amp;$this, &quot;sess_destroy&quot;),
    array( &amp;$this, &quot;sess_gc&quot; )
);</code></pre></div><p>As far as I know this causes my object logic to replace the built in session logic in PHP and enables me to save the session data in a database.</p><p>I just don&#039;t get why the use of my own class causes the hangup on showing the files in the image/filemanager. When I add a print_r( $_SESSION ) in <a href="http://www.mysite.com/js/tinymce/jscripts/tiny_mce/plugins/imagemanager/index.php">http://www.mysite.com/js/tinymce/jscrip &#133; /index.php</a> it shows the correct session variables.</p>]]></description>
			<author><![CDATA[dummy@example.com (TorinNL)]]></author>
			<pubDate>Mon, 21 Mar 2011 16:10:23 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=87897#p87897</guid>
		</item>
		<item>
			<title><![CDATA[Re: Using custom session object breaks FileManager?]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=87893#p87893</link>
			<description><![CDATA[<p>So you don&#039;t provide a session manager replacement for the built in session logic in PHP? Then you need to do that or create your own plugin for the ImageManager that uses your session logic instead of the built in on in PHP. If it doesn&#039;t load it could be that it outputs contents from your files hard to tell from here without looking at your code.</p>]]></description>
			<author><![CDATA[dummy@example.com (spocke)]]></author>
			<pubDate>Mon, 21 Mar 2011 15:30:30 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=87893#p87893</guid>
		</item>
		<item>
			<title><![CDATA[Re: Using custom session object breaks FileManager?]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=87891#p87891</link>
			<description><![CDATA[<p>Thanks for your response. I&#039;m not quite sure what to do, though. I have the following code to use my session object:<br />require_once $_SERVER[&#039;DOCUMENT_ROOT&#039;].&#039;/library/mysession.php&#039;;<br />$obj_mysession = new MySession();<br />session_start();</p><p>What exactly should I then add to the config.php?</p><p>Additional note: when I try to open the file/imagemanager the popup &#039;hangs&#039; on:<br />http://www.mysite.com/js/tinymce/jscripts/tiny_mce/plugins/imagemanager/index.php?type=im&amp;page=index.html</p><p>TIA for any help.</p>]]></description>
			<author><![CDATA[dummy@example.com (TorinNL)]]></author>
			<pubDate>Mon, 21 Mar 2011 15:28:03 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=87891#p87891</guid>
		</item>
		<item>
			<title><![CDATA[Re: Using custom session object breaks FileManager?]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=87879#p87879</link>
			<description><![CDATA[<p>Just add your custom session logic to config.php and it will be loaded before any sessions are handled. Also use require_once(dirname(__FILE__) . &#039;/path/to/your/logic&#039;); so that it loads it relative from config.php and not from the requesting page.</p>]]></description>
			<author><![CDATA[dummy@example.com (spocke)]]></author>
			<pubDate>Mon, 21 Mar 2011 14:30:56 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=87879#p87879</guid>
		</item>
		<item>
			<title><![CDATA[Using custom session object breaks FileManager?]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=87827#p87827</link>
			<description><![CDATA[<p>Hi all,</p><p>I&#039;m using a custom session object which saves the session in the database in stead of on the filesystem (PHP default). This gives me more control on how long a session can last, without being subject to the PHP garbage collection. So, before every session_start(), I&#039;m including and instantiating this object. I&#039;ve had to change the SessionAuthenticator.php file (and also login_session_auth.php and ExternalAuthenticator.php) to also include and instantiate the object, otherwise I was shown the default login page when I opened the filemanager. When I open the filemanager now, it only shows a blank page. Displaying of errors is on (error_reporting = E_ALL), but the page remains blank.</p><p>When I don&#039;t use the custom session object, the filemanager shows correctly.</p><p>Any help would be appreciated.</p><p>Note: I have the same problem with the imagemanager.</p>]]></description>
			<author><![CDATA[dummy@example.com (TorinNL)]]></author>
			<pubDate>Sat, 19 Mar 2011 11:36:46 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=87827#p87827</guid>
		</item>
	</channel>
</rss>
