Re: How To Share Var Between Sessions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

php-objects@xxxxxxxxxxxxxxx wrote on 05/30/2008 05:42:20 PM:

> For default, session it is unique by user. Remember that.
> 
> On Thu, May 29, 2008 at 5:52 PM, Hari KT <kthari85@xxxxxxxxxxx> wrote:
> > You can use $_SESSION['variable'] = 'value'; . Please do start the 
session
> > on each page first ..
> > Refer php.net for more
> >
> > hossein aspanani <hossein_aspanany@xxxxxxxxx> wrote: Hi PHP Developers
> >
> > How To Share a Var (Or Any Information) Between Sessions Without DB Or 
File?
> >
> > ( In ASP We Can Use From 'Application' Var For Example:
> > <% Application["SharedVar"] = "This Is A Test"; %> )
> >
> > Help Please
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
=====-----=====-----=====
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]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux