|
From: <cpj...@th...> - 2003-12-12 15:44:21
|
why dont you just change your etest user password to 'protocol' in your database so you dont have to make that change everytime?? that is the correct password we are using now.
i dont know what to tell you. I have no more ideas. maybe some of the others can help you. Chris?? Brad?? any ideas. are you guys having problems to or are you fine like me?
cpj
-------Original Message-------
> From: Jeremy Eden <ede...@ho...>
> Subject:=20
Re: [Etest-devel] Re: [Etest-devel] warnings and other questions
> Sent: Dec 12 2003 10:15:41
>
> I have done some more looking and the sessions are not working on my machine
> at all.=A0=A0Is there something else that needs to be done with the change from
> having sessions stored to a directory vs. stored in the database.=A0=A0Something
> like a PHP.INI change?=A0=A0I am stuck until the sessions work on my machine.=A0=A0I
> can't even continue developing since I can't get past the admin_home page.
> The only change that I did, was to the configure.php file. I changed the
> DB_HOST to be 'localhost' instead of 'mysql' because the check for the
> localhost IP doesn't work on my machine because my server has a static IP.
> I also changed the DBPassword to 'etest' instead of 'protocol'=A0=A0because that
> was how I had setup the MySQL database before.=A0=A0It doesn't seem like either
> of these two changes should affect sessions though.=A0=A0Any ideas?
> =20
> ----- Original Message -----
> From: "Craig P Jolicoeur"
> To:
> Sent: Friday, December 12, 2003 7:39 AM
> Subject: RE: [Etest-devel] Re: [Etest-devel] warnings and other questions
> =20
> =20
> I am not sure what to tell you.=A0=A0The admin and student pages work fine
> on my machine, and on the live sourceforge site.=A0=A0There are no errors
> being thrown like that.=A0=A0The sessions work fine. I am not sure where
> your problem is coming from.=A0=A0Is anyone else having the same problem??
> My thoughts are that it is probably something on your machine since it
> works fine for me and on the sf site.
> =20
> You may still see some records in the etest_sessions table but they most
> likely are expired.=A0=A0The will still be there if the user didn't log out
> and just closed the browser or something like that.=A0=A0The reason they are
> there is no garbage collection has been run on expired sessions.=A0=A0I will
> have to implement something for that soon.
> =20
> -----Original Message-----
> From: ete...@li...
> [mailto:ete...@li...] On Behalf Of Jeremy
> Eden
> Sent: Friday, December 12, 2003 6:55 AM
> To: ete...@li...
> Subject: Re: [Etest-devel] Re: [Etest-devel] warnings and other
> questions
> =20
> =20
> I am starting my pages like you have in the example and it is still
> giving those warnings and the redirect to the login page doesn't work
> either because the headers are already sent.=A0=A0It happens also with the
> student pages not just the admin pages.=A0=A0Before logging in a student, go
> to student_grade.php as an example and you should be redirected to login
> the student but instead I get warnings saying the headers are already
> sent and that is all I see.=A0=A0I have the latest from CVS, my database is
> setup with etest_mysql_import.sql and this is still happening.=A0=A0I am
> running the website on a WinXP Home, MySQL 4.0.16,=A0=A0PHP 4.3.3 and Apache
> 1.3.
> =20
> If no one is connected to the etest website (on my webserver) should I
> still see records in the etest_sessions table?
> =20
> For the logout.php file the admin pages only set 'adminusername' and
> 'Admin_Name' SESSION vars.
> =20
> ----- Original Message -----
> From: "Craig P Jolicoeur"
> To:
> Sent: Thursday, December 11, 2003 2:04 PM
> Subject: [Etest-devel] Re: [Etest-devel] warnings and other questions
> =20
> =20
> This is how you should start your pages now.=A0=A0just include the
> configure.php file and then do your $_SESSION['username'] check to see
> if the user is logged in.=A0=A0then setup your variables and include
> html_header.php.=A0=A0Thats all you need to do now.=A0=A0The configure.php files
> does everything for you. It sets all the variable constants, includes
> the header.php file, setups the MySQL session management file, and then
> starts your session.=A0=A0All of this is done for you now in the
> configure.php file.=A0=A0just start your pages like
> this:
> =20
> =20
> =20
> =20
> =20
> =A0=A0=A0=A0require('../includes/configure.php');
> =20
> =20
> =20
> =A0=A0=A0=A0if (!isset($_SESSION['username']))
> =20
> =A0=A0=A0=A0{
> =20
> =A0=A0=A0=A0=A0=A0 header("location: ../index.php");
> =20
> =A0=A0=A0=A0=A0=A0 exit;
> =20
> =A0=A0=A0=A0}
> =20
> =20
> =20
> =A0=A0 $pagetitle =3D "View Grades";
> =20
> =A0=A0 $stylesheet =3D "student_basics.css";
> =20
> =A0=A0 $navbarname =3D "../student_navbar/student_navbar_print.inc";
> =20
> =A0=A0 require('../includes/html_header.php');
> =20
> =20
> =20
> if you are doing that, it should work fine for you.=A0=A0also, you need to
> make sure your database is set up correctly to handle the new session
> management table.=A0=A0import the etest_mysql_import.sql file into your db
> to set it up properly.
> =20
> =20
> =20
> about deleting teachers,=A0=A0no teacher should be deleted if they have
> associated tests, courses, etc...=A0=A0Really a teacher shouldnt have to be
> deleted, since schools will probably want to keep records of them on
> file for a long time, but we still should allow them to be deleted if
> they truly do want to.
> =20
> =20
> =20
> craig
> =20
> =20
> =20
> =20
> =20
> =A0=A0 -------Original Message-------
> =20
> =A0=A0 > From: Jeremy Eden
> =20
> =A0=A0 > Subject:
> =20
> [Etest-devel] warnings and other questions
> =20
> =A0=A0 > Sent: Dec 11 2003 12:47:18
> =20
> =A0=A0 >
> =20
> =A0=A0 >=A0=A0After updating this morning I started getting PHP warnings on
> every admin
> =20
> =A0=A0 >=A0=A0page, see below:
> =20
> =A0=A0 >
> =20
> =A0=A0 >=A0=A0Warning: session_start() Cannot send session cookie - headers
> already sent
> =20
> =A0=A0 >=A0=A0by (...mysql_sessions.inc.php:636) in configure.php:110
> =20
> =A0=A0 >=A0=A0Warning: session_start() Cannot send session cache limiter -
> headers
> =20
> =A0=A0 >=A0=A0already sent by (...mysql_sessions.inc.php:636) in
> configure.php:110
> =20
> =A0=A0 >
> =20
> =A0=A0 >=A0=A0I am running Apache on WinXP. I also have noticed that now that
> the
> =20
> =A0=A0 >=A0=A0headers.php is in configure.php the redirects to the login page
> don't work
> =20
> =A0=A0 >=A0=A0anymore because the headers are already sent. These might be
> related
> =20
> =A0=A0 >=A0=A0issues.
> =20
> =A0=A0 >
> =20
> =A0=A0 >=A0=A0I am almost done with the admin teachers pages I just have one
> question
> =20
> =A0=A0 >=A0=A0about deleting a teacher. Is a teacher allowed to be deleted if a
> course
> =20
> =A0=A0 >=A0=A0they are teaching already has had tests or has students enrolled?
> I would
> =20
> =A0=A0 >=A0=A0say no, but I would like more input. In the meantime I am starting
> work on
> =20
> =A0=A0 >=A0=A0the admin classes pages.
> =20
> =A0=A0 >
> =20
> =A0=A0 >=A0=A0Jeremy
> =20
> =A0=A0 >
> =20
> =A0=A0 >
> =20
> =A0=A0 >=A0=A0-------------------------------------------------------
> =20
> =A0=A0 >=A0=A0This SF.net email is sponsored by: IBM Linux Tutorials.
> =20
> =A0=A0 >=A0=A0Become an expert in LINUX or just sharpen your skills. Sign up for
> IBM's
> =20
> =A0=A0 >=A0=A0Free Linux Tutorials. Learn everything from the bash shell to sys
> admin.
> =20
> =A0=A0 >=A0=A0Click now! http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick
> =20
> =A0=A0 >=A0=A0[INVALID FOOTER]
> =20
> =A0=A0 -------Original Message-------
> =20
> =20
> =20
> =20
> =20
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.=A0=A0Sign up for
> IBM's Free Linux Tutorials.=A0=A0Learn everything from the bash shell to sys
> admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick
> [INVALID FOOTER]
> =20
> =20
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.=A0=A0Sign up for
> IBM's Free Linux Tutorials.=A0=A0Learn everything from the bash shell to sys
> admin. Click now! http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick
> [INVALID FOOTER]
> =20
> =20
> =20
> =20
> =20
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.=A0=A0Sign up for IBM's
> Free Linux Tutorials.=A0=A0Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick
> [INVALID FOOTER]
> =20
> =20
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.=A0=A0Sign up for IBM's
> Free Linux Tutorials.=A0=A0Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick
> [INVALID FOOTER]
-------Original Message-------
|