Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is there something wrong with PHP session tracking?

php session wrong
0
10 Posted

Is there something wrong with PHP session tracking?

0

Because PHP runs as ‘you’, not as the webserver, if you enable PHP session tracking, the temporary session files it creates are not writable by other users. As a result, if users visit two different user or society sites on the SRCF which both use PHP sessions, they’ll get an error message. The way to avoid this is for everybody to restrict their session cookies only to your own website (a good idea for security reasons in any case).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123