Jump to content

cags

Staff Alumni
  • Posts

    3,217
  • Joined

  • Last visited

Posts posted by cags

  1. I don't see how I can make it any more clear.  The mail.xyz.com is blatantly not the actual value you are using in your php.ini. Whatever SMTP server you are using requires you to authenticate with it before you can send an e-mail, this CANNOT be done with the mail function, it does not support authentication. You either need to use an SMTP server that doesn't require authentication or use a different mailing class such as one of the two I mentioned previously.

  2. The error message is what you say, it is saying that there is no accesslevel variable in the $_SESSION array. If a user isn't logged in to your site when that function is called you will always get that error. You can prevent that from coming up by doing something more like...

     

    if( !isset($_SESSION['logged_in']) || $_SESSION['accesslevel'] < $requiredAccess){
       die("You don't have access to this area. If you should have access, please log in again. <a href='/login/'>Login</a>");
    }

    ...rather than...

     

    if($_SESSION['accesslevel'] < $requiredAccess || $_SESSION['logged_in'] != TRUE){
       die("You don't have access to this area. If you should have access, please log in again. <a href='/login/'>Login</a>");
    }

     

  3. This should only cause problems if the other folder is being accessed via a different sub-domain (or accessed via FRAMES or FRAME forwarding). Other than that it's difficult to say without having a live example to inspect the cookies on. Try using the web developer toolbar for FF as a simple way to easily view active cookies and check for the session cookie on the various pages. Take particular note of the domain they are active on.

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