Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP Sessions Issue
    primarykey
    data
    text
    <p>I am having one hell of a problem that I cannot figure out for the life of me. I have set up a super simple CMS for a client. Each different page of the CMS has and include file called session.php.</p> <pre><code>session_start(); $username = $_SESSION['siteadmin']; if (!$_SESSION['siteadmin']){ header( 'Location: login.php?status=2' ); } </code></pre> <p>Every now and again, random things would disappear from the database. So, I setup a crude log system that logged any action through the CMS. Well, it happened again. The logs show this:</p> <pre><code>Logged in **.**.237.209 17:18 &lt;-- thats me Deleted board member id 12 195.42.102.25 16:49 Deleted board member id 15 195.42.102.25 16:49 Deleted board member id 8 195.42.102.25 16:49 Deleted board member id 10 195.42.102.25 16:49 Deleted board member id 9 195.42.102.25 16:49 Deleted board member id 4 195.42.102.25 16:49 Deleted board member id 3 195.42.102.25 16:49 Deleted board member id 5 195.42.102.25 16:49 Deleted board member id 6 195.42.102.25 16:49 Deleted board member id 11 195.42.102.25 16:49 Deleted board member id 7 195.42.102.25 16:49 Deleted review id 2 195.42.102.25 16:49 Deleted review id 3 195.42.102.25 16:49 </code></pre> <p>and that goes on for a couple pages. It doesn't even show 195.42.102.25 logging in! Last time it happened with 195.128.18.19. How are they computers loading the window without a session variable? Is there a security hole in my code that I am completely overlooking?!</p> <p>Any insight on this issue would be awesome.</p> <p>Thanks,</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload