From: Tomas K. <to...@us...> - 2012-08-21 05:13:09
|
lichen970 wrote: > > Thanks for relying me. And here's something I may need to clarify. I am > not creating a new PHP session I think. The session IDs are the same. I > just want to only maintain one IMAP connection within a sqmail session. I > am not trying to store the sq session itself. > If you want to maintain same connection on different PHP script calls, you need to transfer connection information. Information is transfered by using session data storage. SquirrelMail keeps IMAP connection resource in $imapConnection variable. If you want to preserve $imapConnection variable for use in other page call, you have to store it in session. This variable is stream object and you can't store stream objects in session. PHP webmails don't use persistent IMAP connections. Please use IMAP proxy, if you want to maintain persistent IMAP connections in PHP based IMAP clients. -- Tomas -- View this message in context: http://old.nabble.com/small-problem-about-retrieving-variable-from-SESSION%E2%80%8F-tp34322640p34327556.html Sent from the squirrelmail-devel mailing list archive at Nabble.com. |