Search the web
Sign In
New User? Sign Up
in-phpug · Indian PHP User Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
PHP Global session variable?   Message List  
Reply | Forward Message #3248 of 3263 |
Re: [in-phpug] PHP Global session variable?

I don't think if there is such an equivalent in PHP. You will have to store
the data in the file system by some means inorder to provide
application-wide access. You can try using plain-text files, XMLs or even
databases.

You may look at options like getenv and putenv, which allow you to access
the SYSTEM variables of the server. But its generally not advised to
manipluate the server environment.
http://in2.php.net/getenv
http://in2.php.net/manual/en/function.putenv.php


Regards,
Krishna Shasankar

http://www.krishnashasankar.com | http://www.clickoffline.com


On Thu, Jun 11, 2009 at 12:44 PM, abhishek jain <ejaincom@...> wrote:

>
>
>
> Hi,
> Is there a global session variable which is global , i mean which can be
> accessed by every request and changed by any one ,
>
> Which destoys itself once the Apache is restarted.
>
> --
> Regards,
> Abhishek jain
>
>
>


[Non-text portions of this message have been removed]




Thu Jun 11, 2009 11:01 am

shasankar
Offline Offline
Send Email Send Email

Forward
Message #3248 of 3263 |
Expand Messages Author Sort by Date

Hi, Is there a global session variable which is global , i mean which can be accessed by every request and changed by any one , Which destoys itself once the...
abhishek jain
ejaincom
Offline Send Email
Jun 11, 2009
7:16 am

I don't think if there is such an equivalent in PHP. You will have to store the data in the file system by some means inorder to provide application-wide...
Krishna Shasankar
shasankar
Offline Send Email
Jun 11, 2009
11:11 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help