Jump to content

Applicable ways to store state on the server using PHP


Recommended Posts

Hello, mates! I am new to PHP.

I want to store some data shared between requests. I know that it is possible with memcached and shared memory in Unix.

What ways to do it could you advice?

How could I realize background service in PHP?

Thank you.


Link to comment
Share on other sites

Forget everything you know about IIS and C#.NET applications, forget all those common practices about shared memory on the server, and start learning PHP from the very beginning. Because trying to apply your C#.NET experience to PHP will cause you lots of problems.

The answer you're looking for is probably sessions.

Link to comment
Share on other sites

Join the conversation

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

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.