Jump to content

Persistant array held in memory between connections


Azu

Recommended Posts

Can someone please tell me if there is there some kind of plugin for PHP that will let me have a persistent array that will stay in memory even after the php process dies, and that all PHP processes will be able to access? Like some kind of $_SuperDuperImmortalGlobal['InterPHP'] that only goes away when the web server closes? And if there is, does it work with fastcgi? I don't care if it's free or not as long as it has good performance. Better performance then calling a database memory table over and over.

Link to comment
Share on other sites

I'm pretty sure session cookies only work for one computer that is connecting, and even then will only work if the client accepts session works, and thus they are client-side..

Link to comment
Share on other sites

I understand only a large number is stored client side to identify the session. All other data is stored server-side.

Otherwise

session.save_path  string

 

    session.save_path defines the argument which is passed to the save handler. If you choose the default files handler, this is the path where the files are created. Defaults to /tmp

doesn't make sense.
Link to comment
Share on other sites

  • 2 weeks later...

Thanks I am looking for an entirely server side solution that won't be specific to a single client connection though :s

This will be often accessed directly by another PHP process without any client, and will also be accessed by some other computers, and it is important that the data won't be specific to a single connection.. sorry if I'm not making sense I'm really sleepy.. x_x

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.