Jump to content

Recommended Posts

Erm. I'm still learning php right now. i am able to build simple database system on my website when i happened to learn about the log-in system. I used php sessions on my website and it functioned completely but when i view it to another computer, even simple session page counter wouldn't work. when i copied the code(the page counter) to another php document webpage then opened it on my browser, it would work. Should i place a code on my pages that would delete something on the server other than session_destroy?

Link to comment
https://forums.phpfreaks.com/topic/66305-php-sessions/
Share on other sites

Sessions are also affected by if the user has cookies enabled. Did the other computer have cookies enabled?

If you wanted the changes (counting up I guess) you saw on your computer to be seen by other users, sessions is not what you'll use, you need to store the changes on your server.

Link to comment
https://forums.phpfreaks.com/topic/66305-php-sessions/#findComment-332085
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.