|
From: Jeremy E. <ede...@ho...> - 2003-12-12 15:57:47
|
How does the sess_init function get called? I don't see any call to it and
I don't see any mention of it in the PHP docs.
----- Original Message -----
From: "Craig P Jolicoeur" <cpj...@th...>
To: <ete...@li...>
Sent: Friday, December 12, 2003 10:45 AM
Subject: [Etest-devel] Re: Re: [Etest-devel] Re: [Etest-devel] warnings and
other questions
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:
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. Is there something else that needs to be done with the
change from
> having sessions stored to a directory vs. stored in the database.
Something
> like a PHP.INI change? I am stuck until the sessions work on my
machine. I
> 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'
because that
> was how I had setup the MySQL database before. It doesn't seem like
either
> of these two changes should affect sessions though. Any ideas?
>
> ----- 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
>
>
> I am not sure what to tell you. The admin and student pages work
fine
> on my machine, and on the live sourceforge site. There are no
errors
> being thrown like that. The sessions work fine. I am not sure where
> your problem is coming from. Is 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.
>
> You may still see some records in the etest_sessions table but they
most
> likely are expired. The will still be there if the user didn't log
out
> and just closed the browser or something like that. The reason they
are
> there is no garbage collection has been run on expired sessions. I
will
> have to implement something for that soon.
>
> -----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
>
>
> 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. It happens also with
the
> student pages not just the admin pages. Before 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. I have the latest from CVS, my database
is
> setup with etest_mysql_import.sql and this is still happening. I am
> running the website on a WinXP Home, MySQL 4.0.16, PHP 4.3.3 and
Apache
> 1.3.
>
> If no one is connected to the etest website (on my webserver)
should I
> still see records in the etest_sessions table?
>
> For the logout.php file the admin pages only set 'adminusername'
and
> 'Admin_Name' SESSION vars.
>
> ----- 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
>
>
> This is how you should start your pages now. just include the
> configure.php file and then do your $_SESSION['username'] check to
see
> if the user is logged in. then setup your variables and include
> html_header.php. Thats all you need to do now. The 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. All of this is done for you now in the
> configure.php file. just start your pages like
> this:
>
>
>
>
>
> require('../includes/configure.php');
>
>
>
> if (!isset($_SESSION['username']))
>
> {
>
> header("location: ../index.php");
>
> exit;
>
> }
>
>
>
> $pagetitle = "View Grades";
>
> $stylesheet = "student_basics.css";
>
> $navbarname =
"../student_navbar/student_navbar_print.inc";
>
> require('../includes/html_header.php');
>
>
>
> if you are doing that, it should work fine for you. also, you need
to
> make sure your database is set up correctly to handle the new
session
> management table. import the etest_mysql_import.sql file into your
db
> to set it up properly.
>
>
>
> about deleting teachers, no teacher should be deleted if they have
> associated tests, courses, etc... Really 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.
>
>
>
> craig
>
>
>
>
>
> -------Original Message-------
>
> > From: Jeremy Eden
>
> > Subject:
>
> [Etest-devel] warnings and other questions
>
> > Sent: Dec 11 2003 12:47:18
>
> >
>
> > After updating this morning I started getting PHP warnings on
> every admin
>
> > page, see below:
>
> >
>
> > Warning: session_start() Cannot send session cookie - headers
> already sent
>
> > by (...mysql_sessions.inc.php:636) in configure.php:110
>
> > Warning: session_start() Cannot send session cache limiter -
> headers
>
> > already sent by (...mysql_sessions.inc.php:636) in
> configure.php:110
>
> >
>
> > I am running Apache on WinXP. I also have noticed that now
that
> the
>
> > headers.php is in configure.php the redirects to the login
page
> don't work
>
> > anymore because the headers are already sent. These might be
> related
>
> > issues.
>
> >
>
> > I am almost done with the admin teachers pages I just have one
> question
>
> > about deleting a teacher. Is a teacher allowed to be deleted
if a
> course
>
> > they are teaching already has had tests or has students
enrolled?
> I would
>
> > say no, but I would like more input. In the meantime I am
starting
> work on
>
> > the admin classes pages.
>
> >
>
> > Jeremy
>
> >
>
> >
>
> > -------------------------------------------------------
>
> > This SF.net email is sponsored by: IBM Linux Tutorials.
>
> > Become an expert in LINUX or just sharpen your skills. Sign up
for
> IBM's
>
> > Free Linux Tutorials. Learn everything from the bash shell to
sys
> admin.
>
> > Click now!
http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
>
> > [INVALID FOOTER]
>
> -------Original Message-------
>
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills. Sign up for
> IBM's Free Linux Tutorials. Learn everything from the bash shell to
sys
> admin. Click now!
http://ads.osdn.com/?ad_id78&alloc_id371&op=ick
> [INVALID FOOTER]
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills. Sign up for
> IBM's Free Linux Tutorials. Learn everything from the bash shell to
sys
> admin. Click now!
http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> [INVALID FOOTER]
>
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills. Sign up for
IBM's
> Free Linux Tutorials. Learn everything from the bash shell to sys
admin.
> Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=ick
> [INVALID FOOTER]
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills. Sign up for
IBM's
> Free Linux Tutorials. Learn everything from the bash shell to sys
admin.
> Click now!
http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> [INVALID FOOTER]
-------Original Message-------
|