Re: small problem about retrieving variable from SESSION‏

Tomas Kuliavas <[email protected]> Mon, 20 Aug 2012 22:13:02 -0700 (PDT)
Newsgroups gmane.mail.squirrelmail.devel
Message-ID <[email protected]>

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.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
-----
squirrelmail-devel mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel