OK Andrew, here it is - I think.   This is sessions.php.   Errors on other
files complain on an undefined _SESSION.    With this the content in the
main area does not come up.   It was messing with this file that caused the
problem.

Previous errors were about login and admin_access, but the script more or
less worked, and it was a matter either of seeing if the variables should be
set, or just changing error reporting (which I thought I had already done!).

There's a lot of gubbins with things I have tried.   Note -- one or two
lines have turned and look as though they're not commented, but all that
should be are.

<? php
/* set the session name to WebsiteID */

//$previous_name = session_name("WebsiteID");

//echo "The previous session name was $previous_name<p>";

session_start();
session_name('MyPHPSite');
header("Cache-control: private"); //fix for IE
// Use $HTTP_SESSION_VARS with PHP 4.0.6 or less

function login_check(){
         if($_SESSION['login'] != TRUE){
          myheader("Login Required");
     include $_SERVER['DOCUMENT_ROOT'].
                        '/html/forms/login_form.html';
        //  include_once($_SERVER['DOCUMENT_ROOT'].
           //               '/html/forms/login_form.html');
       footer();
       exit();
     }
}

//  function admin_check(){
  //     if($_SESSION['admin_access']){
  //    myheader("Access Denied!");
   //  echo "<CENTER>This area is restricted ".
    //           " to website administrators!";
     //     }
 function admin_check() {
     //  if (isset($_SESSION['admin_access']))
          if ($_SESSION['admin_access'] == '1')
                   return true;
                     return false;

      footer();
      exit();


}
 ?>





> Css behaves slightly differently in tables. Special set of sub rules.
>
> Post your code for the disaster. It's very possible you've forgotten to
> close a } or a > somewhere that causes the blank. A url even to a blank
page
> would do it since we could look at the source.
>
> drew
>
> -----Original Message-----
> From: Smile-Poet [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 23, 2004 1:27 PM
> To: [EMAIL PROTECTED]
> Subject: [wdvltalk] Re: css not acting
>
>
> Then here is  a conundrum for you (in the plural).   The css would not
work
> correctly in <td>, but does so in <font>.   Since I do this only now and
> again I am probably missing something, and I will learn more.   But is
there
> perhaps an imediate reason for this problem?
>
> Also. alas, in triumphing I set updisaster!    :-/  ;~(   I changed
> something without saving a copy first, and I have a fresh, major,
undefined,
> and blanks instead of content!!!.
>
> It must wait a couple of days.   In fact I might put what I have in
another
> folder, and start right from the beginning again to see if I now
understand
> enought to get it right as I go.   Is that a good idea?
>
> Joseph
>
> Cheryl wrote:
> When I first started reading your post I was thinking my husband had
> been too generous with the scotch. A font tag in a post from you,
> fortunately I continued to read and as the rest of the message scrolled
> up my faith was restored. ;-}
>
> Tim:
> I gotta admit, I was thinking the same thing.  [rudy?!? Using <font>???
> LOL]  It got better.
>
> FWIW, putting the style in the <TD> tag works well in Netcape 4 browsers
> (one of the few things that does work for tables).  It's a clean way of
> using the same CSS for NN4 and most other browsers rather than having to
> specify an NN4-only stylesheet.
>
> Tim
>
>


____ • The WDVL Discussion List from WDVL.COM • ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
       Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to