Jump to content

PHP Sessions


demophoon88

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.