This is probably where it's breaking :- "The environment variable will only exist for the duration of the current request." The original request said "Without DB Or File". As I said, it's very difficult, but this can be done in memory only by using a permanent intermediary process. Rob. -----Original Message----- From: php-objects@xxxxxxxxxxxxxxx [mailto:php-objects@xxxxxxxxxxxxxxx] On Behalf Of Krishna Srikanth Sent: 02 June 2008 05:35 To: php-objects@xxxxxxxxxxxxxxx Subject: Re: How To Share Var Between Sessions Hi, Sorry for the prev mail, Upon testing, the variables cannot be shared through $_ENV. No luck even when tried on ISAPI or CGI. As a work around, you can write the required info to small text files, and open the files whereever applicable. Regards, Manda Krishna Srikanth http://www.krishnasrikanth.com php-objects@xxxxxxxxxxxxxxx wrote on 06/02/2008 09:49:08 AM: > Hi, > > The variables can be shared across sessions by putting them in > environment. You can store variables in $_ENV super global. You can use > getenv() and putenv() functions. > > But be careful, while sharing critical info in env, because phpinfo() > shows all env variables. > > Regards, > Manda Krishna Srikanth > http://www.krishnasrikanth.com =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you [Non-text portions of this message have been removed] ------------------------------------ Are you looking for a PHP job? Join the PHP Professionals directory Now! http://www.phpclasses.org/professionals/Yahoo! Groups Links *********************************************************************************** Any opinions expressed in email are those of the individual and not necessarily those of the company. This email and any files transmitted with it are confidential and solely for the use of the intended recipient or entity to whom they are addressed. It may contain material protected by attorney-client privilege. If you are not the intended recipient, or a person responsible for delivering to the intended recipient, be advised that you have received this email in error and that any use is strictly prohibited. Random House Group + 44 (0) 20 7840 8400 http://www.randomhouse.co.uk http://www.booksattransworld.co.uk http://www.kidsatrandomhouse.co.uk Generic email address - enquiries@xxxxxxxxxxxxxxxxx Name & Registered Office: THE RANDOM HOUSE GROUP LIMITED 20 VAUXHALL BRIDGE ROAD LONDON SW1V 2SA Random House Group Ltd is registered in the United Kingdom with company No. 00954009, VAT number 102838980 ***********************************************************************************