Note that there are some explanatory texts on larger screens.

plurals
  1. POAutomatically Access Denied, What's Happening?
    primarykey
    data
    text
    <p>Ok so I just resolved my <a href="https://stackoverflow.com/questions/15594748/parse-error-syntax-error-unexpected-in-c-xampp-htdocs-smasher-auth-php-on">last question</a> and I need help AGAIN... So I fixed the authentication code but now every time I log in to my profile, it says I'm not logged into my site. Here's the access-denied.php code:</p> <pre><code>&lt;title&gt;Access Denied&lt;/title&gt; &lt;link href="loginmodule.css" rel="stylesheet" type="text/css" /&gt; &lt;/head&gt; &lt;body&gt; &lt;h1&gt;Access Denied &lt;/h1&gt; &lt;p align="center"&gt;&amp;nbsp;&lt;/p&gt; &lt;h4 align="center" class="err"&gt;Access Denied!&lt;br /&gt; You do not have access to this resource.&lt;/h4&gt; </code></pre> <p>And Here's my auth.php code:</p> <pre><code>//Start session session_start(); //Check whether the session variable SESS_MEMBER_ID is present or not if(!isset($_SESSION['email']) || ($_SESSION['password'])){ header("location: access-denied.php"); exit(); } </code></pre> <p>And here's my profile page code:</p> <pre><code>&lt;?php session_start(); ?&gt; &lt;?php include("inc/incfiles/loggedheader.php")?&gt; &lt;?php require_once('auth.php'); ?&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt; &lt;title&gt;Member Index&lt;/title&gt; &lt;link href="css/main.css" rel="stylesheet" type="text/css" /&gt; &lt;/head&gt; &lt;body&gt; &lt;h1&gt;Welcome &lt;? if(isset($_SESSION['SESS_fname'])){ echo $_SESSION['SESS_fname']; } ?&gt;&lt;/h1&gt; &lt;a href="member-profile.php"&gt;My Profile&lt;/a&gt; | &lt;a href="logout.php"&gt;Logout&lt;/a&gt; &lt;p&gt;Welcome to your profile! &lt;/p&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Why can't I log into my profile? I know nothing about this type of PHP I'm barely still learning, my friend (who is helping me build my site) got the codes and just emails them to me.</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.
    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