Re: small problem about retrieving variable from SESSION
Tomas Kuliavas <[email protected]> Mon, 20 Aug 2012 09:40:49 -0700 (PDT)
| Newsgroups | gmane.mail.squirrelmail.devel |
|---|---|
| Message-ID | <[email protected]> |
李辰-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-tp34322640p34325379.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