Re: small problem about retrieving variable from SESSION‏

lichen970 <[email protected]> Mon, 20 Aug 2012 17:52:33 -0700 (PDT)
Newsgroups gmane.mail.squirrelmail.devel
Message-ID <[email protected]>
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. 



Tomas Kuliavas wrote:
> 
> 
> 李辰-2 wrote:
>> 
>> 
>> Hi, all,
>> I am new to Squirrel mail and not sure if this is the right place to ask
>> questions. In a research project, I need for some reason to modify the sm
>> code. Specifically, I need to modify the right_main.php, so that each
>> time when I click "inbox" it will not call sqimap_login() again if we
>> already have one imap session remaining. I do not logout from imap
>> explicitly.   Only the first time we need to create a imap connection. My
>> problem is, with the below code(the output followed), I cannot get back
>> the imapConnection when I click inbox or simply refresh the page. 
>> 
>> Any suggestions? Thanks very much.
> 
> Connections are not persistent in PHP scripts and IMHO you can't store
> socket objects in session. Every time you call a script, you are creating
> new environment for it.
> 
> See information about IMAP proxy.
> (http://www.squirrelmail.org/docs/admin/admin-6.html#ss6.6)
> 
> -- 
> Tomas
> 

-- 
View this message in context: http://old.nabble.com/small-problem-about-retrieving-variable-from-SESSION%E2%80%8F-tp34322640p34327143.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