You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(109) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(2) |
Feb
(1) |
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Craig P J. <cpj...@th...> - 2004-03-09 00:10:53
|
Karol, for sure. Go ahead and try to figure it out. The problem, as stated many times before, is load-balancing servers (which sourceforge uses). They have 5 servers hosting the web content so from page to page you are not guaranteed to get the page from the same server each time. This is the whole reason we changed how we handle sessions, and now do it through mysql tables, because the session werent holding from server to server. We seem to have problems including the msyql_session.php.inc file from page to page and have to click refresh in the browser several times to get some pages up. If you could figure out a solution that would be great, since like you mentioned, someone may try to run eTest on load-balancing servers and have the same problem themselves. -----Original Message----- From: ete...@li... [mailto:ete...@li...] On Behalf Of Karol Krizka Sent: Monday, March 08, 2004 6:47 PM To: ete...@li... Subject: RE: [Etest-devel] eTest PHP Beta1 Hello, As for the new host for the demo site, what if someone who downloads it wants to run it on a some site like sf.net? Since I am the person with no real job here, I could take a look at it and figure out a way to solve it. Cheers, Karol Krizka >From: "Craig P Jolicoeur" <cpj...@th...> >Reply-To: ete...@li... >To: ete...@li... >Subject: [Etest-devel] eTest PHP Beta1 >Date: Mon, 08 Mar 2004 13:00:15 -0500 > >I have released eTest beta1 as an early PHP version. The student test >taking is still not complete, and the instructor side may have some small >bugs and incomplete pages in it. I felt that we needed to at least release >something out there so we werent stagnating. > >Brad, I made the changes to your pages to use the $DB_prefix in all of >your >mysql queries. make sure you sync with the latest CVS version and start >doing this in your code. also, as a note for all (especially brad), ALL >table names in our database are in lowercase. the field names follow the >Capitalized-First-Letter of each work routine, but the table names themself >are all lowercase. this is important on *nix systems since the filesystems >are case sensitive. we probably should change everything to use all >lowercase_with_underscore or something like that, but for the time being >make sure we are using lowercase table names. > >also, if anyone has a place where we can host the demo eTest site >instead >of the sourceforge servers, that would be great. since the sourceforge >servers use the load balancing we have been drawing a lot of include file >errors and I think it really detracts from someone checking the site out >online. if anyone has another place we can host the PHP site, let me know. > >cpj > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >[INVALID FOOTER] _________________________________________________________________ http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU =http://hotmail.com/enca&HL=Market_MSNIS_Taglines ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click [INVALID FOOTER] |
From: Karol K. <roa...@ms...> - 2004-03-09 00:03:30
|
Hello, As for the new host for the demo site, what if someone who downloads it wants to run it on a some site like sf.net? Since I am the person with no real job here, I could take a look at it and figure out a way to solve it. Cheers, Karol Krizka >From: "Craig P Jolicoeur" <cpj...@th...> >Reply-To: ete...@li... >To: ete...@li... >Subject: [Etest-devel] eTest PHP Beta1 >Date: Mon, 08 Mar 2004 13:00:15 -0500 > >I have released eTest beta1 as an early PHP version. The student test >taking is still not complete, and the instructor side may have some small >bugs and incomplete pages in it. I felt that we needed to at least release >something out there so we werent stagnating. > >Brad, I made the changes to your pages to use the $DB_prefix in all of your >mysql queries. make sure you sync with the latest CVS version and start >doing this in your code. also, as a note for all (especially brad), ALL >table names in our database are in lowercase. the field names follow the >Capitalized-First-Letter of each work routine, but the table names themself >are all lowercase. this is important on *nix systems since the filesystems >are case sensitive. we probably should change everything to use all >lowercase_with_underscore or something like that, but for the time being >make sure we are using lowercase table names. > >also, if anyone has a place where we can host the demo eTest site instead >of the sourceforge servers, that would be great. since the sourceforge >servers use the load balancing we have been drawing a lot of include file >errors and I think it really detracts from someone checking the site out >online. if anyone has another place we can host the PHP site, let me know. > >cpj > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >[INVALID FOOTER] _________________________________________________________________ http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines |
From: Craig P J. <cpj...@th...> - 2004-03-08 18:17:38
|
I have released eTest beta1 as an early PHP version. The student test taking is still not complete, and the instructor side may have some small bugs and incomplete pages in it. I felt that we needed to at least release something out there so we werent stagnating. Brad, I made the changes to your pages to use the $DB_prefix in all of your mysql queries. make sure you sync with the latest CVS version and start doing this in your code. also, as a note for all (especially brad), ALL table names in our database are in lowercase. the field names follow the Capitalized-First-Letter of each work routine, but the table names themself are all lowercase. this is important on *nix systems since the filesystems are case sensitive. we probably should change everything to use all lowercase_with_underscore or something like that, but for the time being make sure we are using lowercase table names. also, if anyone has a place where we can host the demo eTest site instead of the sourceforge servers, that would be great. since the sourceforge servers use the load balancing we have been drawing a lot of include file errors and I think it really detracts from someone checking the site out online. if anyone has another place we can host the PHP site, let me know. cpj |
From: Craig P J. <cpj...@th...> - 2004-02-02 15:48:41
|
I have updated the administrator pages to use DB_prefix, since neither Jeremy or Chris has. Are you guys still there and onboard with this project or what? This was a very easy thing to do, but I havent heard anything from either of you recently. I havent updated the instructor pages, Brad, cuz I know you are just rewriting them anyway. Just wanted to let you guys know. cpj |
From: Craig P J. <cpj...@th...> - 2004-01-27 20:28:12
|
I have updated the eTest database to use the new tabale names with the etest prefix. All table names now are the old name prefixed with etest_ (i.e. etest_instructor, etest_questions, etc...). The DB_PREFIX and $DB_prefix values are set in the configure file, so all you should have to change in your code is adding the prefix before every table name. If you coded your queries properly you should just be able to paste the following into your code immediatly before everytable name: ".$DB_prefix."_ pasting this into this query: $query = "SELECT * FROM student WHERE Student_Code = '$username'"; will change it to this query: $query = "SELECT * FROM ".$DB_prefix."_student WHERE Student_Code = '$username'"; which works properly. remember this needs to be done before everytable name in the query, not just the FROM part. If you have a join it must be on both, and if you reference a specific field in the query (i.e. student.Student_Code) that must be changed also (i.e. $DB_prefix."_student.Student_Code). Once, you make the changes, remember that all new development and queries will use the new prefix structure. This allows the user to specify his own prefix if he wants or else use the default prefix of etest. Any questions, let me know craig |
From: Craig P J. <cpj...@th...> - 2004-01-12 04:09:19
|
I have completely redone the http://etest.sourceforge.net site. It now runs completely on PHP-Nuke. This will make it much easier for me to maintain and for all of us to make updates to it. We now all can easily add news and updates submission and scan the forums for any user support issues. So go ahead, check it out, create a user account, and let me know what you think. I am sure you guys will find stuff that you like and don't like so let me know. Any suggestions or things you think should be changed/updated/deleted let me know. Everything still isnt completely converted over, but only a few things are left. the main info is there. I will finish the rest of the conversion in the next few days. craig |
From: <cpj...@th...> - 2003-12-29 17:29:52
|
Hey everyone, I hope you all have had a time these past days with the holidays. I know things have been kind of slow lately because of what time of year it is. I would like try to set a release date for version 1.0 of eTest PHP since we are pretty close to completion. I will need all your input though, as to how close you all think we really are. Jeremy & Chris: It seems like you both have the admin side pretty much up and working properly. Try to do as much testing/debugging and interface enhancements that you think you can. Also, you both can start work on the admin interface pages to the DB like Jeremy talked about earlier. We should give them some minimal access to the DB in case it is absolutely necessary. We still havent decided if we will include this as an option for sure yet, but you both can go ahead and start working on the pages so they are there when we decide to go with them. Brad: I know you have a lot of work done on the instructor side. Is the test creation process complete (the old way) and any other instructor pages. Basically, are you finished with the instructor conversion yet, and if not, how close are you. I know you are working with changing the way the tests are created, but if we can just wait to incorporate those changes until after we release the first version it would make things easier since I would have to rewrite my student pages for the new test changes. I am pretty much done with the student pages. I just have one minor problem with the grading scores but other than that I am complete. Also, the essay questions grading hasnt been implemented yet. I dont know if any of you have given any though as far as how to implement this but for now the teacher has to grade essays by hand. I would like to try to shoot for January 15 as a kind of "Beta" release data where we can have all coding done and committed to CVS and then we can all test and debug what we have and hopefully make our first release a week or so after that. Let me know what you all think. craig |
From: Ivan <ze...@ne...> - 2003-12-21 10:51:58
|
Hi. I just got an idea. I think it would be good if we put into the admin section of etest a database administration section, so the administrator can check the database and tables of etest, repair them, analyze them, optimize them, make a backup of the databse, etc. I made something like this but just for a table. We can modificate it and it will work fine. Best regards, Ivan -- Sudjelujte u Iskon Bonus nagradnom programu i osvajajte nagrade. Saznajte vi¹e na web adresi http://www.iskon.biz/bonus/ |
From: Craig P J. <cpj...@th...> - 2003-12-17 12:38:09
|
Jeremy, they look good but here are several issues to work on. In the modify class section. If a new section is added to a class that only had one section before (and thereforge no section number associated with it) when a second section is added, the first section should be changed and labeled as section 1 now. It currently just stays blank for the section. -----Original Message----- From: ete...@li... [mailto:ete...@li...] On Behalf Of Jeremy Eden Sent: Wednesday, December 17, 2003 7:31 AM To: ete...@li... Subject: [Etest-devel] admin pages I far as I know I am finished with the admin pages. ------------------------------------------------------- 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] |
From: Jeremy E. <ede...@ho...> - 2003-12-17 12:24:40
|
I far as I know I am finished with the admin pages. |
From: Brad <pie...@mt...> - 2003-12-14 04:08:25
|
To all developers: I have just added my new files to the site for you all to review. = Please review the test creation process as I have added it. It is = basically the same as the asp version. Please email me directly with = you thoughts. I mentioned before that I may implement a process for the = teacher to arrange Q's in any order. I would like some input. Thanks, Brad |
From: Brad <pie...@mt...> - 2003-12-14 02:28:01
|
Jeremy, I was having the same error message on the session_start(). I removed the blank lines at the bottom of the two config files and the error messages went away. Strange error but problem solved. Thanks for solving it so I did not have to pull my hair out to find that. Brad ----- Original Message ----- From: <ete...@li...> To: <ete...@li...> Sent: Friday, December 12, 2003 4:23 PM Subject: Etest-devel digest, Vol 1 #22 - 2 msgs > Send Etest-devel mailing list submissions to > ete...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/etest-devel > or, via email, send a message with subject or body 'help' to > ete...@li... > > You can reach the person managing the list at > ete...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Etest-devel digest..." > > > Today's Topics: > > 1. =?iso-8859-1?B?UmU6IFJlOiBbRXRlc3QtZGV2ZWxdIFJlOiBFdGVzdC1kZXZlbCBkaWdlc3QsI FZvbCAxICMxOSAtIDMgbXNncw==?= (=?iso-8859-1?B?Q3JhaWcgUCBKb2xpY29ldXI=?=) > 2. RE: Re: Etest-devel digest, Vol 1 #19 - 3 msgs (Craig P Jolicoeur) > > --__--__-- > > Message: 1 > From: "=?iso-8859-1?B?Q3JhaWcgUCBKb2xpY29ldXI=?=" <cpj...@th...> > To: ete...@li... > Date: Fri, 12 Dec 2003 16:44:52 -0500 > Subject: [Etest-devel] =?iso-8859-1?B?UmU6IFJlOiBbRXRlc3QtZGV2ZWxdIFJlOiBFdGVzdC1kZXZlbCBkaWdlc3QsI FZvbCAxICMxOSAtIDMgbXNncw==?= > Reply-To: ete...@li... > > Hey Chris, are you signing your messages with PGP or something?? the reason I ask, is becuase during the day, I have to check my email at work on a webmail box and lately (the past 2 days) sometimes your email doesnt show it, but has an attachment of "clearsigned data". when i try to open the attachement in a text editor I dont get anything. if you are signing your email, could you not anymore, because i am having trouble reading your mail while I work on the project here at work. > > > > cpj > > > --__--__-- > > Message: 2 > From: "Craig P Jolicoeur" <cpj...@th...> > To: <ete...@li...> > Subject: RE: [Etest-devel] Re: Etest-devel digest, Vol 1 #19 - 3 msgs > Date: Fri, 12 Dec 2003 17:22:29 -0500 > Reply-To: ete...@li... > > there are several reasons why we decided to store session info in the > db. the need to do this started with a problem we were having with the > sourceforge live testing version of etest. the sessions werent being > kept from page to page and we didnt know why. I found out that the > reason was because sourceforge has 5 web servers that run load-balancing > software to distribute requests. so we were getting the login page from > one server and storing our login info there, and then when we clicked a > link to another page, that page might be sent to us from one of the > other servers which didnt have out session info on it so we were being > redirected to the login as if we never had logged in. so the two ways > to get around this were to set the session_save_path() value to a folder > in our webroot directory or to write our own session management > functions using our mysql database. we chose to use the db because of > the greater security that it provides for one reason. we didnt have to > open up a folder in our webroot directory that all users could have > access to and risk security issues through that. by using the db method > we can also match all the session data to a users ip address to prevent > (as chris called it) "session fixation", where another user > "hijacks some session info as it is passed, grabs the session_id, > and then writes out there own session info. with the db, we now map the > session id to an individual ip address and check to make sure all > session requests to that session_id come from the same ip address. > another reason was portability. since we will have the mysql server > anyways with our software, it made sense to use it for this need as > well. plus, it was easy enough to implement and very easy for us to > manage. =3D20 > > > > that pretty much sums it up. > > > > cpj > > > > -----Original Message----- > From: ete...@li... > [mailto:ete...@li...] On Behalf Of Brad > Sent: Friday, December 12, 2003 3:02 PM > To: ete...@li... > Subject: [Etest-devel] Re: Etest-devel digest, Vol 1 #19 - 3 msgs > > > Can someone bring me up to speed on why we are even storing the sessions > in=20 > the db? Is this really necessary? I'm assuming for security reasons > but=20 > would like an explanation. I have been very busy lately and have not > had=20 > much time to program. Therefore, my code is not using all of the new=20 > configuration files. I plan to make a clone of the student or admin > home=20 > page to use as the instructor home page, but would like some explanation > > basically for my understanding. > > Thanks, > Brad > > On Fri, 12 Dec 2003 11:35:01 -0800, etest-devel- > re...@li... wrote : > > > Send Etest-devel mailing list submissions to > > ete...@li... > >=20 > > To subscribe or unsubscribe via the World Wide Web, visit > > https://lists.sourceforge.net/lists/listinfo/etest-devel > > or, via email, send a message with subject or body 'help' to > > ete...@li... > >=20 > > You can reach the person managing the list at > > ete...@li... > >=20 > > When replying, please edit your Subject line so it is more specific=20 > > than "Re: Contents of Etest-devel digest..." > >=20 > >=20 > > Today's Topics: > >=20 > > 1. Re: Re: Re: [Etest-devel] Re: Re: [Etest-devel] Re:=20 > > [Etest-devel] > warnings and other questions (Jeremy Eden) > > 2. Re: warnings and other questions (Chris Wanstrath) > > 3. =3D?iso-8859-1?B? > UmU6IFJlOiBbRXRlc3QtZGV2ZWxdIFJlOiBSZTogW0V0ZXN0LWRldmVsXSBSZTogUmU6IFtF > dGVz > dC1kZXZlbF0gUmU6IFtFdGVzdC1kZXZlbF0gd2FybmluZ3MgYW5kIG90aGVyIHF1ZXN0aW9u > cw=3D=3D > ?=3D (=3D?iso-8859-1?B?Q3JhaWcgUCBKb2xpY29ldXI=3D?=3D) > >=20 > > -- __--__-- > >=20 > > Message: 1 > > From: "Jeremy Eden" <ede...@ho...> > > To: <ete...@li...> > > Subject: Re: [Etest-devel] Re: Re: [Etest-devel] Re: Re: [Etest-devel] > Re: [Etest-devel] warnings and other questions > > Date: Fri, 12 Dec 2003 13:36:59 -0500 > > Reply-To: ete...@li... > >=20 > > I think I figured out why it was giving me those warnings. There are > blank > > lines after the last '?>' in configure.php and mysql_sessions.inc.php. > This > > is somehow causing the headers to be sent because when I removed them=20 > > I > was > > working again just fine and the sessions were working with no more > warnings. > > I don't know if this blank is being seen as html code. Does this make > sense > > to anyone? > >=20 > > ----- Original Message ----- > > From: "Craig P Jolicoeur" <cpj...@th...> > > To: <ete...@li...> > > Sent: Friday, December 12, 2003 12:35 PM > > Subject: [Etest-devel] Re: Re: [Etest-devel] Re: Re: [Etest-devel] Re: > > [Etest-devel] warnings and other questions > >=20 > >=20 > > we arent calling the sess_init(). we set up the varibles in=20 > > configure.php so we dont need to call sess_init(). there will be not=20 > > documentation on > it > > since it isnt an actually PHP builtin function but a user-defined > function. > > but, we arent calling it right now, we set up the variables ourselves=20 > > in configure.php that sess_init() would have set up. > >=20 > >=20 > >=20 > >=20 > >=20 > >=20 > >=20 > > -------Original Message------- > >=20 > > > From: Jeremy Eden <ede...@ho...> > >=20 > > > Subject: > >=20 > > Re: [Etest-devel] Re: Re: [Etest-devel] Re: [Etest-devel] warnings and > other > > questions > >=20 > > > Sent: Dec 12 2003 11:03:39 > >=20 > > > > >=20 > > > How does the sess_init function get called? I don't see any=20 > > call > to > > it and > >=20 > > > I don't see any mention of it in the PHP docs. > >=20 > > > ----- Original Message ----- > >=20 > > > From: "Craig P Jolicoeur" > >=20 > > > To: > >=20 > > > Sent: Friday, December 12, 2003 10:45 AM > >=20 > > > Subject: [Etest-devel] Re: Re: [Etest-devel] Re:=20 > > [Etest-devel] warnings and > >=20 > > > other questions > >=20 > > > > >=20 > > > > >=20 > > > why dont you just change your etest user password to=20 > > 'protocol' > in > > your > >=20 > > > database so you dont have to make that change everytime??=20 > > that is the > >=20 > > > correct password we are using now. > >=20 > > > > >=20 > > > > >=20 > > > > >=20 > > > i dont know what to tell you. I have no more ideas. maybe=20 > > some of the > >=20 > > > others can help you. Chris?? Brad?? any ideas. are you guys > having > >=20 > > > problems to or are you fine like me? > >=20 > > > > >=20 > > > > >=20 > > > > >=20 > > > cpj > >=20 > > > > >=20 > > > > >=20 > > > > >=20 > > > > >=20 > > > > >=20 > > > > >=20 > > > > >=20 > > > -------Original Message------- > >=20 > > > > >=20 > > > > From: Jeremy Eden > >=20 > > > > >=20 > > > > Subject: > >=20 > > > > >=20 > > > Re: [Etest-devel] Re: [Etest-devel] warnings and other=20 > > questions > >=20 > > > > >=20 > > > > Sent: Dec 12 2003 10:15:41 > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > I have done some more looking and the sessions are not > working > > on > >=20 > > > my machine > >=20 > > > > >=20 > > > > at all. Is there something else that needs to be done=20 > > with > the > >=20 > > > change from > >=20 > > > > >=20 > > > > having sessions stored to a directory vs. stored in the=20 > > database. > >=20 > > > Something > >=20 > > > > >=20 > > > > like a PHP.INI change? I am stuck until the sessions=20 > > work on my > >=20 > > > machine. I > >=20 > > > > >=20 > > > > can't even continue developing since I can't get past=20 > > the > >=20 > > > admin_home page. > >=20 > > > > >=20 > > > > The only change that I did, was to the configure.php=20 > > file. I > >=20 > > > changed the > >=20 > > > > >=20 > > > > DB_HOST to be 'localhost' instead of 'mysql' because the > check > > for > >=20 > > > the > >=20 > > > > >=20 > > > > localhost IP doesn't work on my machine because my=20 > > server > has > > a > >=20 > > > static IP. > >=20 > > > > >=20 > > > > I also changed the DBPassword to 'etest' instead > of 'protocol' > >=20 > > > because that > >=20 > > > > >=20 > > > > was how I had setup the MySQL database before. It=20 > > doesn't > seem > > like > >=20 > > > either > >=20 > > > > >=20 > > > > of these two changes should affect sessions though. Any > ideas? > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > ----- Original Message ----- > >=20 > > > > >=20 > > > > From: "Craig P Jolicoeur" > >=20 > > > > >=20 > > > > To: > >=20 > > > > >=20 > > > > Sent: Friday, December 12, 2003 7:39 AM > >=20 > > > > >=20 > > > > Subject: RE: [Etest-devel] Re: [Etest-devel] warnings=20 > > and other > >=20 > > > questions > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > I am not sure what to tell you. The admin and student=20 > > pages work > >=20 > > > fine > >=20 > > > > >=20 > > > > on my machine, and on the live sourceforge site. There=20 > > are > no > >=20 > > > errors > >=20 > > > > >=20 > > > > being thrown like that. The sessions work fine. I am not > sure > > where > >=20 > > > > >=20 > > > > your problem is coming from. Is anyone else having the=20 > > same > >=20 > > > problem?? > >=20 > > > > >=20 > > > > My thoughts are that it is probably something on your > machine > > since > >=20 > > > it > >=20 > > > > >=20 > > > > works fine for me and on the sf site. > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > You may still see some records in the etest_sessions=20 > > table > but > > they > >=20 > > > most > >=20 > > > > >=20 > > > > likely are expired. The will still be there if the user > didn't > > log > >=20 > > > out > >=20 > > > > >=20 > > > > and just closed the browser or something like that. The > reason > > they > >=20 > > > are > >=20 > > > > >=20 > > > > there is no garbage collection has been run on expired=20 > > sessions. I > >=20 > > > will > >=20 > > > > >=20 > > > > have to implement something for that soon. > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > -----Original Message----- > >=20 > > > > >=20 > > > > From: ete...@li... > >=20 > > > > >=20 > > > > [mailto:ete...@li...] On=20 > > Behalf > Of > >=20 > > > Jeremy > >=20 > > > > >=20 > > > > Eden > >=20 > > > > >=20 > > > > Sent: Friday, December 12, 2003 6:55 AM > >=20 > > > > >=20 > > > > To: ete...@li... > >=20 > > > > >=20 > > > > Subject: Re: [Etest-devel] Re: [Etest-devel] warnings=20 > > and other > >=20 > > > > >=20 > > > > questions > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > I am starting my pages like you have in the example and=20 > > it > is > > still > >=20 > > > > >=20 > > > > giving those warnings and the redirect to the login page > > > doesn't > >=20 > > > work > >=20 > > > > >=20 > > > > either because the headers are already sent. It happens=20 > > also with > >=20 > > > the > >=20 > > > > >=20 > > > > student pages not just the admin pages. Before logging=20 > > in a > >=20 > > > student, go > >=20 > > > > >=20 > > > > to student_grade.php as an example and you should be=20 > > redirected to > >=20 > > > login > >=20 > > > > >=20 > > > > the student but instead I get warnings saying the=20 > > headers > are > >=20 > > > already > >=20 > > > > >=20 > > > > sent and that is all I see. I have the latest from CVS,=20 > > my database > >=20 > > > is > >=20 > > > > >=20 > > > > setup with etest_mysql_import.sql and this is still > happening. > > I am > >=20 > > > > >=20 > > > > running the website on a WinXP Home, MySQL 4.0.16, PHP=20 > > 4.3.3 and > >=20 > > > Apache > >=20 > > > > >=20 > > > > 1.3. > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > If no one is connected to the etest website (on my > webserver) > >=20 > > > should I > >=20 > > > > >=20 > > > > still see records in the etest_sessions table? > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > For the logout.php file the admin pages only set=20 > > 'adminusername' > >=20 > > > and > >=20 > > > > >=20 > > > > 'Admin_Name' SESSION vars. > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > ----- Original Message ----- > >=20 > > > > >=20 > > > > From: "Craig P Jolicoeur" > >=20 > > > > >=20 > > > > To: > >=20 > > > > >=20 > > > > Sent: Thursday, December 11, 2003 2:04 PM > >=20 > > > > >=20 > > > > Subject: [Etest-devel] Re: [Etest-devel] warnings and=20 > > other > >=20 > > > questions > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > This is how you should start your pages now. just=20 > > include > the > >=20 > > > > >=20 > > > > configure.php file and then do your=20 > > $_SESSION['username'] check to > >=20 > > > see > >=20 > > > > >=20 > > > > if the user is logged in. then setup your variables and=20 > > include > >=20 > > > > >=20 > > > > html_header.php. Thats all you need to do now. The=20 > > configure.php > >=20 > > > files > >=20 > > > > >=20 > > > > does everything for you. It sets all the variable=20 > > constants, > >=20 > > > includes > >=20 > > > > >=20 > > > > the header.php file, setups the MySQL session management > file, > > and > >=20 > > > then > >=20 > > > > >=20 > > > > starts your session. All of this is done for you now in=20 > > the > >=20 > > > > >=20 > > > > configure.php file. just start your pages like > >=20 > > > > >=20 > > > > this: > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > require('../includes/configure.php'); > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > if (!isset($_SESSION['username'])) > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > { > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > header("location: ../index.php"); > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > exit; > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > } > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > $pagetitle =3D "View Grades"; > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > $stylesheet =3D "student_basics.css"; > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > $navbarname =3D > >=20 > > > "../student_navbar/student_navbar_print.inc"; > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > require('../includes/html_header.php'); > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > if you are doing that, it should work fine for you.=20 > > also, > you > > need > >=20 > > > to > >=20 > > > > >=20 > > > > make sure your database is set up correctly to handle=20 > > the > new > >=20 > > > session > >=20 > > > > >=20 > > > > management table. import the etest_mysql_import.sql file > into > > your > >=20 > > > db > >=20 > > > > >=20 > > > > to set it up properly. > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > about deleting teachers, no teacher should be deleted if > they > > have > >=20 > > > > >=20 > > > > associated tests, courses, etc... Really a teacher=20 > > shouldnt have to > >=20 > > > be > >=20 > > > > >=20 > > > > deleted, since schools will probably want to keep=20 > > records of them > >=20 > > > on > >=20 > > > > >=20 > > > > file for a long time, but we still should allow them to=20 > > be deleted > >=20 > > > if > >=20 > > > > >=20 > > > > they truly do want to. > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > craig > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > -------Original Message------- > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > From: Jeremy Eden > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > Subject: > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > [Etest-devel] warnings and other questions > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > Sent: Dec 11 2003 12:47:18 > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > After updating this morning I started getting PHP=20 > > warnings on > >=20 > > > > >=20 > > > > every admin > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > page, see below: > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > Warning: session_start() Cannot send session cookie > > > - headers > >=20 > > > > >=20 > > > > already sent > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > by (...mysql_sessions.inc.php:636) in=20 > > configure.php:110 > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > Warning: session_start() Cannot send session cache=20 > > limiter - > >=20 > > > > >=20 > > > > headers > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > already sent by (...mysql_sessions.inc.php:636) in > >=20 > > > > >=20 > > > > configure.php:110 > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > I am running Apache on WinXP. I also have noticed=20 > > that now > >=20 > > > that > >=20 > > > > >=20 > > > > the > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > headers.php is in configure.php the redirects to=20 > > the login > >=20 > > > page > >=20 > > > > >=20 > > > > don't work > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > anymore because the headers are already sent. These > might > > be > >=20 > > > > >=20 > > > > related > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > issues. > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > I am almost done with the admin teachers pages I=20 > > just have one > >=20 > > > > >=20 > > > > question > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > about deleting a teacher. Is a teacher allowed to=20 > > be deleted > >=20 > > > if a > >=20 > > > > >=20 > > > > course > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > they are teaching already has had tests or has=20 > > students > >=20 > > > enrolled? > >=20 > > > > >=20 > > > > I would > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > say no, but I would like more input. In the=20 > > meantime I > am > >=20 > > > starting > >=20 > > > > >=20 > > > > work on > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > the admin classes pages. > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > Jeremy > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > >=20 > > ------------------------------------------------------- > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > This SF.net email is sponsored by: IBM Linux=20 > > Tutorials. > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > Become an expert in LINUX or just sharpen your=20 > > skills. Sign up > >=20 > > > for > >=20 > > > > >=20 > > > > IBM's > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > Free Linux Tutorials. Learn everything from the=20 > > bash shell to > >=20 > > > sys > >=20 > > > > >=20 > > > > admin. > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > Click now! > >=20 > > > =20 > > http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > [INVALID FOOTER] > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > -------Original Message------- > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > ------------------------------------------------------- > >=20 > > > > >=20 > > > > This SF.net email is sponsored by: IBM Linux Tutorials. > >=20 > > > > >=20 > > > > Become an expert in LINUX or just sharpen your skills.=20 > > Sign > up > > for > >=20 > > > > >=20 > > > > IBM's Free Linux Tutorials. Learn everything from the=20 > > bash shell to > >=20 > > > sys > >=20 > > > > >=20 > > > > admin. Click now! > >=20 > > > http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick > >=20 > > > > >=20 > > > > [INVALID FOOTER] > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > ------------------------------------------------------- > >=20 > > > > >=20 > > > > This SF.net email is sponsored by: IBM Linux Tutorials. > >=20 > > > > >=20 > > > > Become an expert in LINUX or just sharpen your skills.=20 > > Sign > up > > for > >=20 > > > > >=20 > > > > IBM's Free Linux Tutorials. Learn everything from the=20 > > bash shell to > >=20 > > > sys > >=20 > > > > >=20 > > > > admin. Click now! > >=20 > > > =20 > > http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick > >=20 > > > > >=20 > > > > [INVALID FOOTER] > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > ------------------------------------------------------- > >=20 > > > > >=20 > > > > This SF.net email is sponsored by: IBM Linux Tutorials. > >=20 > > > > >=20 > > > > Become an expert in LINUX or just sharpen your skills.=20 > > Sign > up > > for > >=20 > > > IBM's > >=20 > > > > >=20 > > > > Free Linux Tutorials. Learn everything from the bash=20 > > shell > to > > sys > >=20 > > > admin. > >=20 > > > > >=20 > > > > Click now!=20 > > http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick > >=20 > > > > >=20 > > > > [INVALID FOOTER] > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > > >=20 > > > > >=20 > > > > ------------------------------------------------------- > >=20 > > > > >=20 > > > > This SF.net email is sponsored by: IBM Linux Tutorials. > >=20 > > > > >=20 > > > > Become an expert in LINUX or just sharpen your skills.=20 > > Sign > up > > for > >=20 > > > IBM's > >=20 > > > > >=20 > > > > Free Linux Tutorials. Learn everything from the bash=20 > > shell > to > > sys > >=20 > > > admin. > >=20 > > > > >=20 > > > > Click now! > >=20 > > > =20 > > http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick > >=20 > > > > >=20 > > > > [INVALID FOOTER] > >=20 > > > > >=20 > > > -------Original Message------- > >=20 > > > > >=20 > > > > >=20 > > > > >=20 > > > > >=20 > > > > >=20 > > > > >=20 > > > ------------------------------------------------------- > >=20 > > > This SF.net email is sponsored by: IBM Linux Tutorials. > >=20 > > > Become an expert in LINUX or just sharpen your skills. Sign=20 > > up > for > > IBM's > >=20 > > > Free Linux Tutorials. Learn everything from the bash shell to > > > sys admin. > >=20 > > > Click now!=20 > > http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick > >=20 > > > [INVALID FOOTER] > >=20 > > -------Original Message------- > >=20 > >=20 > >=20 > >=20 > >=20 > >=20 > > -- __--__-- > >=20 > > Message: 2 > > From: Chris Wanstrath <ch...@ba...> > > To: ete...@li... > > Subject: Re: [Etest-devel] warnings and other questions > > Date: Fri, 12 Dec 2003 13:54:01 +0000 > > Reply-To: ete...@li... > >=20 > > =3D2D----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > >=20 > > On Friday 12 December 2003 06:36 pm, Jeremy Eden wrote: > > > I think I figured out why it was giving me those warnings. There=20 > > > are > bla=3D > > nk > > > lines after the last '?>' in configure.php and > mysql_sessions.inc.php.=3D20 > > > This is somehow causing the headers to be sent because when I=20 > > > removed > them > > > I was working again just fine and the sessions were working with no=20 > > > more warnings. I don't know if this blank is being seen as html=20 > > > code. Does > th=3D > > is > > > make sense to anyone? > >=20 > > Yes, I should have looked for that but it never occured to me. I've=20 > > had > th=3D > > at=3D20 > > problem before. The blank line is sent as \n which is not rendered in > HTML=3D > > =3D20 > > but is printed, nonetheless. So technically, there was information=20 > > sent. > =3D > > =3D20 > > Nice catch. > >=20 > > =3D2D --=3D20 > > Chris Wanstrath > > ch...@ba... | www.badstatic.com > >=20 > > =3D2D----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.2.3 (GNU/Linux) > >=20 > > iD8DBQE/2ch7P8e1G1N5RJkRAjAnAJ9KE5FKvbIs1HmO/wovY9u6CR4gCQCdGHeO > > A3RC9icbxuV8uJatzBQ5ygg=3D3D > > =3D3DzMMs > > =3D2D----END PGP SIGNATURE----- > >=20 > >=20 > >=20 > > -- __--__-- > >=20 > > Message: 3 > > From: "=3D?iso-8859-1?B?Q3JhaWcgUCBKb2xpY29ldXI=3D?=3D" > <cpj...@th...> > > To: ete...@li... > > Date: Fri, 12 Dec 2003 14:35:37 -0500 > > Subject: [Etest-devel] =3D?iso-8859-1?B? > UmU6IFJlOiBbRXRlc3QtZGV2ZWxdIFJlOiBSZTogW0V0ZXN0LWRldmVsXSBSZTogUmU6IFtF > dGVz > dC1kZXZlbF0gUmU6IFtFdGVzdC1kZXZlbF0gd2FybmluZ3MgYW5kIG90aGVyIHF1ZXN0aW9u > cw=3D=3D > ?=3D > > Reply-To: ete...@li... > >=20 > > that kind of makes sense if that was your problem. if there are some > <cr><lf> characters for newlines that are being output to the browser, > if=20 > would affect the headers. all headers have to be sent before any output > > unless you buffer the output (which we dont). > >=20 > >=20 > >=20 > > cpj > >=20 > >=20 > >=20 > >=20 > >=20 > >=20 > >=20 > > -------Original Message------- > >=20 > > > From: Jeremy Eden <ede...@ho...> > >=20 > > > Subject:=3D20 > >=20 > > Re: [Etest-devel] Re: Re: [Etest-devel] Re: Re: [Etest-devel] Re:=20 > > [Etest- > devel] warnings and other questions > >=20 > > > Sent: Dec 12 2003 13:36:59 > >=20 > > > > >=20 > > > I think I figured out why it was giving me those > warnings.=3DA0=3DA0There are blank > >=20 > > > lines after the last '?>' in configure.php and > mysql_sessions.inc.php.=3DA0=3DA0This > >=20 > > > is somehow causing the headers to be sent because when I removed > them I was > >=20 > > > working again just fine and the sessions were working with no=20 > > more > warnings. > >=20 > > > I don't know if this blank is being seen as html = > code.=3DA0=3DA0Does > this make sense > >=20 > > > to anyone? > >=20 > > > =3D20 > >=20 > > > ----- Original Message ----- > >=20 > > > From: "Craig P Jolicoeur" > >=20 > > > To: > >=20 > > > Sent: Friday, December 12, 2003 12:35 PM > >=20 > > > Subject: [Etest-devel] Re: Re: [Etest-devel] Re: Re:=20 > > [Etest-devel] > Re: > >=20 > > > [Etest-devel] warnings and other questions > >=20 > > > =3D20 > >=20 > > > =3D20 > >=20 > > > we arent calling the sess_init().=3DA0=3DA0we set up the = > varibles in > configure.php > >=20 > > > so we dont need to call sess_init().=3DA0=3DA0there will be not > documentation on it > >=20 > > > since it isnt an actually PHP builtin function but a=20 > > user-defined > function. > >=20 > > > but, we arent calling it right now, we set up the variables > ourselves in > >=20 > > > configure.php that sess_init() would have set up. > >=20 > > > =3D20 > >=20 > > > =3D20 > >=20 > > > =3D20 > >=20 > > > =3D20 > >=20 > > > =3D20 > >=20 > > > =3D20 > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 -------Original Message------- > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > From: Jeremy Eden > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > Subject: > >=20 > > > =3D20 > >=20 > > > Re: [Etest-devel] Re: Re: [Etest-devel] Re: [Etest-devel]=20 > > warnings > and other > >=20 > > > questions > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > Sent: Dec 12 2003 11:03:39 > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0How does the sess_init function get = > called? I=20 > > don't > see any call to > >=20 > > > it and > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0I don't see any mention of it in the PHP = > docs. > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0----- Original Message ----- > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0From: "Craig P Jolicoeur" > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0To: > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0Sent: Friday, December 12, 2003 10:45 AM > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0Subject: [Etest-devel] Re: Re: = > [Etest-devel] Re: > [Etest-devel] > >=20 > > > warnings and > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0other questions > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0why dont you just change your etest user = > password > to 'protocol' in > >=20 > > > your > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0database so you dont have to make that = > change > everytime?? that is > >=20 > > > the > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0correct password we are using now. > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0i dont know what to tell you. I have no = > more=20 > > ideas. > maybe some of > >=20 > > > the > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0others can help you. Chris?? Brad?? any = > ideas. are > you guys having > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0problems to or are you fine like me? > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0cpj > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0-------Original Message------- > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> From: Jeremy Eden > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> Subject: > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0Re: [Etest-devel] Re: [Etest-devel] = > warnings and > other questions > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> Sent: Dec 12 2003 10:15:41 > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> I have done some more looking and the = > sessions=20 > > are > not working > >=20 > > > on > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0my machine > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> at all. Is there something else that = > needs to be > done with the > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0change from > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> having sessions stored to a directory = > vs. stored > > > in > the > >=20 > > > database. > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0Something > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> like a PHP.INI change? I am stuck until = > the > sessions work on > >=20 > > > my > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0machine. I > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> can't even continue developing since I = > can't get > past the > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0admin_home page. > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> The only change that I did, was to the > configure.php file. I > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0changed the > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> DB_HOST to be 'localhost' instead of = > 'mysql' > because the check > >=20 > > > for > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0the > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> localhost IP doesn't work on my machine = > because=20 > > my > server has > >=20 > > > a > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0static IP. > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> I also changed the DBPassword to 'etest' = > instead > of 'protocol' > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0because that > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> was how I had setup the MySQL database = > before.=20 > > It > doesn't seem > >=20 > > > like > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0either > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> of these two changes should affect = > sessions=20 > > though. > Any ideas? > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> ----- Original Message ----- > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> From: "Craig P Jolicoeur" > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> To: > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> Sent: Friday, December 12, 2003 7:39 AM > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> Subject: RE: [Etest-devel] Re: = > [Etest-devel] > warnings and > >=20 > > > other > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0questions > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> I am not sure what to tell you. The = > admin and > student pages > >=20 > > > work > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0fine > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> on my machine, and on the live = > sourceforge site. > There are no > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0errors > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> being thrown like that. The sessions = > work fine.=20 > > I > am not sure > >=20 > > > where > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> your problem is coming from. Is anyone = > else=20 > > having > the same > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0problem?? > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> My thoughts are that it is probably = > something on > your machine > >=20 > > > since > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0it > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> works fine for me and on the sf site. > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> You may still see some records in the > etest_sessions table but > >=20 > > > they > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0most > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> likely are expired. The will still be = > there if=20 > > the > user didn't > >=20 > > > log > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0out > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> and just closed the browser or something = > like=20 > > that. > The reason > >=20 > > > they > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0are > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> there is no garbage collection has been = > run on > expired > >=20 > > > sessions. I > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0will > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> have to implement something for that = > soon. > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> -----Original Message----- > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> From: = > ete...@li... > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> = > [mailto:ete...@li...] > > > On > Behalf Of > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0Jeremy > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> Eden > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> Sent: Friday, December 12, 2003 6:55 AM > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> To: ete...@li... > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> Subject: Re: [Etest-devel] Re: = > [Etest-devel] > warnings and > >=20 > > > other > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> questions > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> I am starting my pages like you have in = > the=20 > > example > and it is > >=20 > > > still > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> giving those warnings and the redirect = > to the=20 > > login > page > >=20 > > > doesn't > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0work > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> either because the headers are already = > sent. It > happens also > >=20 > > > with > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0the > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> student pages not just the admin pages. = > Before > logging in a > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0student, go > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> to student_grade.php as an example and = > you=20 > > should be > >=20 > > > redirected to > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0login > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> the student but instead I get warnings = > saying=20 > > the > headers are > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0already > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> sent and that is all I see. I have the = > latest=20 > > from > CVS, my > >=20 > > > database > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0is > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> setup with etest_mysql_import.sql and = > this is=20 > > still > happening. > >=20 > > > I am > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> running the website on a WinXP Home, = > MySQL=20 > > 4.0.16, > PHP 4.3.3 > >=20 > > > and > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0Apache > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> 1.3. > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> If no one is connected to the etest = > website (on=20 > > my > webserver) > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0should I > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> still see records in the etest_sessions = > table? > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> For the logout.php file the admin pages = > only set > >=20 > > > 'adminusername' > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0and > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> 'Admin_Name' SESSION vars. > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> ----- Original Message ----- > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> From: "Craig P Jolicoeur" > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> To: > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> Sent: Thursday, December 11, 2003 2:04 = > PM > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> Subject: [Etest-devel] Re: [Etest-devel] = > > > warnings > and other > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0questions > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> This is how you should start your pages = > now.=20 > > just > include the > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> configure.php file and then do your = > $_SESSION > ['username'] > >=20 > > > check to > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0see > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> if the user is logged in. then setup = > your=20 > > variables > and > >=20 > > > include > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> html_header.php. Thats all you need to = > do now.=20 > > The > >=20 > > > configure.php > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0files > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> does everything for you. It sets all the = > > > variable > constants, > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0includes > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> the header.php file, setups the MySQL = > session > management file, > >=20 > > > and > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0then > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> starts your session. All of this is done = > for you > now in the > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> configure.php file. just start your = > pages like > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> this: > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> require('../includes/configure.php'); > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> if (!isset($_SESSION['username'])) > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> { > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> header("location: ../index.php"); > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> exit; > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> } > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> $pagetitle =3D3D "View Grades"; > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> $stylesheet =3D3D "student_basics.css"; > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> $navbarname =3D3D > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 = > >=3DA0=3DA0"../student_navbar/student_navbar_print.inc"; > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> require('../includes/html_header.php'); > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> if you are doing that, it should work = > fine for=20 > > you. > also, you > >=20 > > > need > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0to > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> make sure your database is set up = > correctly to > handle the new > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0session > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> management table. import the=20 > > etest_mysql_import.sql > file into > >=20 > > > your > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0db > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> to set it up properly. > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> about deleting teachers, no teacher = > should be > deleted if they > >=20 > > > have > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> associated tests, courses, etc... Really = > a=20 > > teacher > shouldnt > >=20 > > > have to > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0be > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> deleted, since schools will probably = > want to=20 > > keep > records of > >=20 > > > them > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0on > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> file for a long time, but we still = > should allow > them to be > >=20 > > > deleted > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0if > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> they truly do want to. > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 >=3DA0=3DA0> craig > >=20 > > > =3D20 > >=20 > > > =3DA0=3DA0 > > >=20... [truncated message content] |
From: Jeremy E. <ede...@ho...> - 2003-12-13 18:10:22
|
The redirects work fine now also after the configure.php and mysql_sessions.inc.php files have the blank line removed at the end of the file. ----- Original Message ----- From: "Chris Wanstrath" <ch...@ba...> To: <ete...@li...> Sent: Thursday, December 11, 2003 10:57 AM Subject: Re: [Etest-devel] warnings and other questions > On Thursday 11 December 2003 05:47 pm, Jeremy Eden wrote: > > 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 > > This should be fixed now as per the configure.php 1.25 to 1.26 CVS update. > Let me know if it still gives you errors. > > > 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'm looking into this now... > > -- > Chris Wanstrath > ch...@ba... | www.badstatic.com > > > > > ------------------------------------------------------- > 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] > |
From: Craig P J. <cpj...@th...> - 2003-12-13 15:32:06
|
Chris, would you please stop changing the DB_PASSWORD from 'protocol' to 'etest'. The correct password is 'protocol'. If you have it as 'etest' on your system, change it to use the right password and stop changing the configure.php file. cpj -----Original Message----- From: ete...@li... [mailto:ete...@li...] On Behalf Of Chris Wanstrath Sent: Thursday, December 11, 2003 10:57 AM To: ete...@li... Subject: Re: [Etest-devel] warnings and other questions On Thursday 11 December 2003 05:47 pm, Jeremy Eden wrote: > 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 This should be fixed now as per the configure.php 1.25 to 1.26 CVS update. Let me know if it still gives you errors. > 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'm looking into this now... -- Chris Wanstrath ch...@ba... | www.badstatic.com ------------------------------------------------------- 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] |
From: Craig P J. <cpj...@th...> - 2003-12-12 22:22:19
|
there are several reasons why we decided to store session info in the db. the need to do this started with a problem we were having with the sourceforge live testing version of etest. the sessions werent being kept from page to page and we didnt know why. I found out that the reason was because sourceforge has 5 web servers that run load-balancing software to distribute requests. so we were getting the login page from one server and storing our login info there, and then when we clicked a link to another page, that page might be sent to us from one of the other servers which didnt have out session info on it so we were being redirected to the login as if we never had logged in. so the two ways to get around this were to set the session_save_path() value to a folder in our webroot directory or to write our own session management functions using our mysql database. we chose to use the db because of the greater security that it provides for one reason. we didnt have to open up a folder in our webroot directory that all users could have access to and risk security issues through that. by using the db method we can also match all the session data to a users ip address to prevent (as chris called it) "session fixation", where another user "hijacks some session info as it is passed, grabs the session_id, and then writes out there own session info. with the db, we now map the session id to an individual ip address and check to make sure all session requests to that session_id come from the same ip address. another reason was portability. since we will have the mysql server anyways with our software, it made sense to use it for this need as well. plus, it was easy enough to implement and very easy for us to manage. =3D20 that pretty much sums it up. cpj -----Original Message----- From: ete...@li... [mailto:ete...@li...] On Behalf Of Brad Sent: Friday, December 12, 2003 3:02 PM To: ete...@li... Subject: [Etest-devel] Re: Etest-devel digest, Vol 1 #19 - 3 msgs Can someone bring me up to speed on why we are even storing the sessions in=20 the db? Is this really necessary? I'm assuming for security reasons but=20 would like an explanation. I have been very busy lately and have not had=20 much time to program. Therefore, my code is not using all of the new=20 configuration files. I plan to make a clone of the student or admin home=20 page to use as the instructor home page, but would like some explanation basically for my understanding. Thanks, Brad On Fri, 12 Dec 2003 11:35:01 -0800, etest-devel- re...@li... wrote : > Send Etest-devel mailing list submissions to > ete...@li... >=20 > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/etest-devel > or, via email, send a message with subject or body 'help' to > ete...@li... >=20 > You can reach the person managing the list at > ete...@li... >=20 > When replying, please edit your Subject line so it is more specific=20 > than "Re: Contents of Etest-devel digest..." >=20 >=20 > Today's Topics: >=20 > 1. Re: Re: Re: [Etest-devel] Re: Re: [Etest-devel] Re:=20 > [Etest-devel] warnings and other questions (Jeremy Eden) > 2. Re: warnings and other questions (Chris Wanstrath) > 3. =3D?iso-8859-1?B? UmU6IFJlOiBbRXRlc3QtZGV2ZWxdIFJlOiBSZTogW0V0ZXN0LWRldmVsXSBSZTogUmU6IFtF dGVz dC1kZXZlbF0gUmU6IFtFdGVzdC1kZXZlbF0gd2FybmluZ3MgYW5kIG90aGVyIHF1ZXN0aW9u cw=3D=3D ?=3D (=3D?iso-8859-1?B?Q3JhaWcgUCBKb2xpY29ldXI=3D?=3D) >=20 > --__--__-- >=20 > Message: 1 > From: "Jeremy Eden" <ede...@ho...> > To: <ete...@li...> > Subject: Re: [Etest-devel] Re: Re: [Etest-devel] Re: Re: [Etest-devel] Re: [Etest-devel] warnings and other questions > Date: Fri, 12 Dec 2003 13:36:59 -0500 > Reply-To: ete...@li... >=20 > I think I figured out why it was giving me those warnings. There are blank > lines after the last '?>' in configure.php and mysql_sessions.inc.php. This > is somehow causing the headers to be sent because when I removed them=20 > I was > working again just fine and the sessions were working with no more warnings. > I don't know if this blank is being seen as html code. Does this make sense > to anyone? >=20 > ----- Original Message ----- > From: "Craig P Jolicoeur" <cpj...@th...> > To: <ete...@li...> > Sent: Friday, December 12, 2003 12:35 PM > Subject: [Etest-devel] Re: Re: [Etest-devel] Re: Re: [Etest-devel] Re: > [Etest-devel] warnings and other questions >=20 >=20 > we arent calling the sess_init(). we set up the varibles in=20 > configure.php so we dont need to call sess_init(). there will be not=20 > documentation on it > since it isnt an actually PHP builtin function but a user-defined function. > but, we arent calling it right now, we set up the variables ourselves=20 > in configure.php that sess_init() would have set up. >=20 >=20 >=20 >=20 >=20 >=20 >=20 > -------Original Message------- >=20 > > From: Jeremy Eden <ede...@ho...> >=20 > > Subject: >=20 > Re: [Etest-devel] Re: Re: [Etest-devel] Re: [Etest-devel] warnings and other > questions >=20 > > Sent: Dec 12 2003 11:03:39 >=20 > > >=20 > > How does the sess_init function get called? I don't see any=20 > call to > it and >=20 > > I don't see any mention of it in the PHP docs. >=20 > > ----- Original Message ----- >=20 > > From: "Craig P Jolicoeur" >=20 > > To: >=20 > > Sent: Friday, December 12, 2003 10:45 AM >=20 > > Subject: [Etest-devel] Re: Re: [Etest-devel] Re:=20 > [Etest-devel] warnings and >=20 > > other questions >=20 > > >=20 > > >=20 > > why dont you just change your etest user password to=20 > 'protocol' in > your >=20 > > database so you dont have to make that change everytime??=20 > that is the >=20 > > correct password we are using now. >=20 > > >=20 > > >=20 > > >=20 > > i dont know what to tell you. I have no more ideas. maybe=20 > some of the >=20 > > others can help you. Chris?? Brad?? any ideas. are you guys having >=20 > > problems to or are you fine like me? >=20 > > >=20 > > >=20 > > >=20 > > cpj >=20 > > >=20 > > >=20 > > >=20 > > >=20 > > >=20 > > >=20 > > >=20 > > -------Original Message------- >=20 > > >=20 > > > From: Jeremy Eden >=20 > > >=20 > > > Subject: >=20 > > >=20 > > Re: [Etest-devel] Re: [Etest-devel] warnings and other=20 > questions >=20 > > >=20 > > > Sent: Dec 12 2003 10:15:41 >=20 > > >=20 > > > >=20 > > >=20 > > > I have done some more looking and the sessions are not working > on >=20 > > my machine >=20 > > >=20 > > > at all. Is there something else that needs to be done=20 > with the >=20 > > change from >=20 > > >=20 > > > having sessions stored to a directory vs. stored in the=20 > database. >=20 > > Something >=20 > > >=20 > > > like a PHP.INI change? I am stuck until the sessions=20 > work on my >=20 > > machine. I >=20 > > >=20 > > > can't even continue developing since I can't get past=20 > the >=20 > > admin_home page. >=20 > > >=20 > > > The only change that I did, was to the configure.php=20 > file. I >=20 > > changed the >=20 > > >=20 > > > DB_HOST to be 'localhost' instead of 'mysql' because the check > for >=20 > > the >=20 > > >=20 > > > localhost IP doesn't work on my machine because my=20 > server has > a >=20 > > static IP. >=20 > > >=20 > > > I also changed the DBPassword to 'etest' instead of 'protocol' >=20 > > because that >=20 > > >=20 > > > was how I had setup the MySQL database before. It=20 > doesn't seem > like >=20 > > either >=20 > > >=20 > > > of these two changes should affect sessions though. Any ideas? >=20 > > >=20 > > > >=20 > > >=20 > > > ----- Original Message ----- >=20 > > >=20 > > > From: "Craig P Jolicoeur" >=20 > > >=20 > > > To: >=20 > > >=20 > > > Sent: Friday, December 12, 2003 7:39 AM >=20 > > >=20 > > > Subject: RE: [Etest-devel] Re: [Etest-devel] warnings=20 > and other >=20 > > questions >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > I am not sure what to tell you. The admin and student=20 > pages work >=20 > > fine >=20 > > >=20 > > > on my machine, and on the live sourceforge site. There=20 > are no >=20 > > errors >=20 > > >=20 > > > being thrown like that. The sessions work fine. I am not sure > where >=20 > > >=20 > > > your problem is coming from. Is anyone else having the=20 > same >=20 > > problem?? >=20 > > >=20 > > > My thoughts are that it is probably something on your machine > since >=20 > > it >=20 > > >=20 > > > works fine for me and on the sf site. >=20 > > >=20 > > > >=20 > > >=20 > > > You may still see some records in the etest_sessions=20 > table but > they >=20 > > most >=20 > > >=20 > > > likely are expired. The will still be there if the user didn't > log >=20 > > out >=20 > > >=20 > > > and just closed the browser or something like that. The reason > they >=20 > > are >=20 > > >=20 > > > there is no garbage collection has been run on expired=20 > sessions. I >=20 > > will >=20 > > >=20 > > > have to implement something for that soon. >=20 > > >=20 > > > >=20 > > >=20 > > > -----Original Message----- >=20 > > >=20 > > > From: ete...@li... >=20 > > >=20 > > > [mailto:ete...@li...] On=20 > Behalf Of >=20 > > Jeremy >=20 > > >=20 > > > Eden >=20 > > >=20 > > > Sent: Friday, December 12, 2003 6:55 AM >=20 > > >=20 > > > To: ete...@li... >=20 > > >=20 > > > Subject: Re: [Etest-devel] Re: [Etest-devel] warnings=20 > and other >=20 > > >=20 > > > questions >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > I am starting my pages like you have in the example and=20 > it is > still >=20 > > >=20 > > > giving those warnings and the redirect to the login page > doesn't >=20 > > work >=20 > > >=20 > > > either because the headers are already sent. It happens=20 > also with >=20 > > the >=20 > > >=20 > > > student pages not just the admin pages. Before logging=20 > in a >=20 > > student, go >=20 > > >=20 > > > to student_grade.php as an example and you should be=20 > redirected to >=20 > > login >=20 > > >=20 > > > the student but instead I get warnings saying the=20 > headers are >=20 > > already >=20 > > >=20 > > > sent and that is all I see. I have the latest from CVS,=20 > my database >=20 > > is >=20 > > >=20 > > > setup with etest_mysql_import.sql and this is still happening. > I am >=20 > > >=20 > > > running the website on a WinXP Home, MySQL 4.0.16, PHP=20 > 4.3.3 and >=20 > > Apache >=20 > > >=20 > > > 1.3. >=20 > > >=20 > > > >=20 > > >=20 > > > If no one is connected to the etest website (on my webserver) >=20 > > should I >=20 > > >=20 > > > still see records in the etest_sessions table? >=20 > > >=20 > > > >=20 > > >=20 > > > For the logout.php file the admin pages only set=20 > 'adminusername' >=20 > > and >=20 > > >=20 > > > 'Admin_Name' SESSION vars. >=20 > > >=20 > > > >=20 > > >=20 > > > ----- Original Message ----- >=20 > > >=20 > > > From: "Craig P Jolicoeur" >=20 > > >=20 > > > To: >=20 > > >=20 > > > Sent: Thursday, December 11, 2003 2:04 PM >=20 > > >=20 > > > Subject: [Etest-devel] Re: [Etest-devel] warnings and=20 > other >=20 > > questions >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > This is how you should start your pages now. just=20 > include the >=20 > > >=20 > > > configure.php file and then do your=20 > $_SESSION['username'] check to >=20 > > see >=20 > > >=20 > > > if the user is logged in. then setup your variables and=20 > include >=20 > > >=20 > > > html_header.php. Thats all you need to do now. The=20 > configure.php >=20 > > files >=20 > > >=20 > > > does everything for you. It sets all the variable=20 > constants, >=20 > > includes >=20 > > >=20 > > > the header.php file, setups the MySQL session management file, > and >=20 > > then >=20 > > >=20 > > > starts your session. All of this is done for you now in=20 > the >=20 > > >=20 > > > configure.php file. just start your pages like >=20 > > >=20 > > > this: >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > require('../includes/configure.php'); >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > if (!isset($_SESSION['username'])) >=20 > > >=20 > > > >=20 > > >=20 > > > { >=20 > > >=20 > > > >=20 > > >=20 > > > header("location: ../index.php"); >=20 > > >=20 > > > >=20 > > >=20 > > > exit; >=20 > > >=20 > > > >=20 > > >=20 > > > } >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > $pagetitle =3D "View Grades"; >=20 > > >=20 > > > >=20 > > >=20 > > > $stylesheet =3D "student_basics.css"; >=20 > > >=20 > > > >=20 > > >=20 > > > $navbarname =3D >=20 > > "../student_navbar/student_navbar_print.inc"; >=20 > > >=20 > > > >=20 > > >=20 > > > require('../includes/html_header.php'); >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > if you are doing that, it should work fine for you.=20 > also, you > need >=20 > > to >=20 > > >=20 > > > make sure your database is set up correctly to handle=20 > the new >=20 > > session >=20 > > >=20 > > > management table. import the etest_mysql_import.sql file into > your >=20 > > db >=20 > > >=20 > > > to set it up properly. >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > about deleting teachers, no teacher should be deleted if they > have >=20 > > >=20 > > > associated tests, courses, etc... Really a teacher=20 > shouldnt have to >=20 > > be >=20 > > >=20 > > > deleted, since schools will probably want to keep=20 > records of them >=20 > > on >=20 > > >=20 > > > file for a long time, but we still should allow them to=20 > be deleted >=20 > > if >=20 > > >=20 > > > they truly do want to. >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > craig >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > -------Original Message------- >=20 > > >=20 > > > >=20 > > >=20 > > > > From: Jeremy Eden >=20 > > >=20 > > > >=20 > > >=20 > > > > Subject: >=20 > > >=20 > > > >=20 > > >=20 > > > [Etest-devel] warnings and other questions >=20 > > >=20 > > > >=20 > > >=20 > > > > Sent: Dec 11 2003 12:47:18 >=20 > > >=20 > > > >=20 > > >=20 > > > > >=20 > > >=20 > > > >=20 > > >=20 > > > > After updating this morning I started getting PHP=20 > warnings on >=20 > > >=20 > > > every admin >=20 > > >=20 > > > >=20 > > >=20 > > > > page, see below: >=20 > > >=20 > > > >=20 > > >=20 > > > > >=20 > > >=20 > > > >=20 > > >=20 > > > > Warning: session_start() Cannot send session cookie > - headers >=20 > > >=20 > > > already sent >=20 > > >=20 > > > >=20 > > >=20 > > > > by (...mysql_sessions.inc.php:636) in=20 > configure.php:110 >=20 > > >=20 > > > >=20 > > >=20 > > > > Warning: session_start() Cannot send session cache=20 > limiter - >=20 > > >=20 > > > headers >=20 > > >=20 > > > >=20 > > >=20 > > > > already sent by (...mysql_sessions.inc.php:636) in >=20 > > >=20 > > > configure.php:110 >=20 > > >=20 > > > >=20 > > >=20 > > > > >=20 > > >=20 > > > >=20 > > >=20 > > > > I am running Apache on WinXP. I also have noticed=20 > that now >=20 > > that >=20 > > >=20 > > > the >=20 > > >=20 > > > >=20 > > >=20 > > > > headers.php is in configure.php the redirects to=20 > the login >=20 > > page >=20 > > >=20 > > > don't work >=20 > > >=20 > > > >=20 > > >=20 > > > > anymore because the headers are already sent. These might > be >=20 > > >=20 > > > related >=20 > > >=20 > > > >=20 > > >=20 > > > > issues. >=20 > > >=20 > > > >=20 > > >=20 > > > > >=20 > > >=20 > > > >=20 > > >=20 > > > > I am almost done with the admin teachers pages I=20 > just have one >=20 > > >=20 > > > question >=20 > > >=20 > > > >=20 > > >=20 > > > > about deleting a teacher. Is a teacher allowed to=20 > be deleted >=20 > > if a >=20 > > >=20 > > > course >=20 > > >=20 > > > >=20 > > >=20 > > > > they are teaching already has had tests or has=20 > students >=20 > > enrolled? >=20 > > >=20 > > > I would >=20 > > >=20 > > > >=20 > > >=20 > > > > say no, but I would like more input. In the=20 > meantime I am >=20 > > starting >=20 > > >=20 > > > work on >=20 > > >=20 > > > >=20 > > >=20 > > > > the admin classes pages. >=20 > > >=20 > > > >=20 > > >=20 > > > > >=20 > > >=20 > > > >=20 > > >=20 > > > > Jeremy >=20 > > >=20 > > > >=20 > > >=20 > > > > >=20 > > >=20 > > > >=20 > > >=20 > > > > >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > ------------------------------------------------------- >=20 > > >=20 > > > >=20 > > >=20 > > > > This SF.net email is sponsored by: IBM Linux=20 > Tutorials. >=20 > > >=20 > > > >=20 > > >=20 > > > > Become an expert in LINUX or just sharpen your=20 > skills. Sign up >=20 > > for >=20 > > >=20 > > > IBM's >=20 > > >=20 > > > >=20 > > >=20 > > > > Free Linux Tutorials. Learn everything from the=20 > bash shell to >=20 > > sys >=20 > > >=20 > > > admin. >=20 > > >=20 > > > >=20 > > >=20 > > > > Click now! >=20 > > =20 > http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick >=20 > > >=20 > > > >=20 > > >=20 > > > > [INVALID FOOTER] >=20 > > >=20 > > > >=20 > > >=20 > > > -------Original Message------- >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > ------------------------------------------------------- >=20 > > >=20 > > > This SF.net email is sponsored by: IBM Linux Tutorials. >=20 > > >=20 > > > Become an expert in LINUX or just sharpen your skills.=20 > Sign up > for >=20 > > >=20 > > > IBM's Free Linux Tutorials. Learn everything from the=20 > bash shell to >=20 > > sys >=20 > > >=20 > > > admin. Click now! >=20 > > http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick >=20 > > >=20 > > > [INVALID FOOTER] >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > ------------------------------------------------------- >=20 > > >=20 > > > This SF.net email is sponsored by: IBM Linux Tutorials. >=20 > > >=20 > > > Become an expert in LINUX or just sharpen your skills.=20 > Sign up > for >=20 > > >=20 > > > IBM's Free Linux Tutorials. Learn everything from the=20 > bash shell to >=20 > > sys >=20 > > >=20 > > > admin. Click now! >=20 > > =20 > http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick >=20 > > >=20 > > > [INVALID FOOTER] >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > ------------------------------------------------------- >=20 > > >=20 > > > This SF.net email is sponsored by: IBM Linux Tutorials. >=20 > > >=20 > > > Become an expert in LINUX or just sharpen your skills.=20 > Sign up > for >=20 > > IBM's >=20 > > >=20 > > > Free Linux Tutorials. Learn everything from the bash=20 > shell to > sys >=20 > > admin. >=20 > > >=20 > > > Click now!=20 > http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick >=20 > > >=20 > > > [INVALID FOOTER] >=20 > > >=20 > > > >=20 > > >=20 > > > >=20 > > >=20 > > > ------------------------------------------------------- >=20 > > >=20 > > > This SF.net email is sponsored by: IBM Linux Tutorials. >=20 > > >=20 > > > Become an expert in LINUX or just sharpen your skills.=20 > Sign up > for >=20 > > IBM's >=20 > > >=20 > > > Free Linux Tutorials. Learn everything from the bash=20 > shell to > sys >=20 > > admin. >=20 > > >=20 > > > Click now! >=20 > > =20 > http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick >=20 > > >=20 > > > [INVALID FOOTER] >=20 > > >=20 > > -------Original Message------- >=20 > > >=20 > > >=20 > > >=20 > > >=20 > > >=20 > > >=20 > > ------------------------------------------------------- >=20 > > This SF.net email is sponsored by: IBM Linux Tutorials. >=20 > > Become an expert in LINUX or just sharpen your skills. Sign=20 > up for > IBM's >=20 > > Free Linux Tutorials. Learn everything from the bash shell to > sys admin. >=20 > > Click now!=20 > http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick >=20 > > [INVALID FOOTER] >=20 > -------Original Message------- >=20 >=20 >=20 >=20 >=20 >=20 > --__--__-- >=20 > Message: 2 > From: Chris Wanstrath <ch...@ba...> > To: ete...@li... > Subject: Re: [Etest-devel] warnings and other questions > Date: Fri, 12 Dec 2003 13:54:01 +0000 > Reply-To: ete...@li... >=20 > =3D2D----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 > On Friday 12 December 2003 06:36 pm, Jeremy Eden wrote: > > I think I figured out why it was giving me those warnings. There=20 > > are bla=3D > nk > > lines after the last '?>' in configure.php and mysql_sessions.inc.php.=3D20 > > This is somehow causing the headers to be sent because when I=20 > > removed them > > I was working again just fine and the sessions were working with no=20 > > more warnings. I don't know if this blank is being seen as html=20 > > code. Does th=3D > is > > make sense to anyone? >=20 > Yes, I should have looked for that but it never occured to me. I've=20 > had th=3D > at=3D20 > problem before. The blank line is sent as \n which is not rendered in HTML=3D > =3D20 > but is printed, nonetheless. So technically, there was information=20 > sent. =3D > =3D20 > Nice catch. >=20 > =3D2D --=3D20 > Chris Wanstrath > ch...@ba... | www.badstatic.com >=20 > =3D2D----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.3 (GNU/Linux) >=20 > iD8DBQE/2ch7P8e1G1N5RJkRAjAnAJ9KE5FKvbIs1HmO/wovY9u6CR4gCQCdGHeO > A3RC9icbxuV8uJatzBQ5ygg=3D3D > =3D3DzMMs > =3D2D----END PGP SIGNATURE----- >=20 >=20 >=20 > --__--__-- >=20 > Message: 3 > From: "=3D?iso-8859-1?B?Q3JhaWcgUCBKb2xpY29ldXI=3D?=3D" <cpj...@th...> > To: ete...@li... > Date: Fri, 12 Dec 2003 14:35:37 -0500 > Subject: [Etest-devel] =3D?iso-8859-1?B? UmU6IFJlOiBbRXRlc3QtZGV2ZWxdIFJlOiBSZTogW0V0ZXN0LWRldmVsXSBSZTogUmU6IFtF dGVz dC1kZXZlbF0gUmU6IFtFdGVzdC1kZXZlbF0gd2FybmluZ3MgYW5kIG90aGVyIHF1ZXN0aW9u cw=3D=3D ?=3D > Reply-To: ete...@li... >=20 > that kind of makes sense if that was your problem. if there are some <cr><lf> characters for newlines that are being output to the browser, if=20 would affect the headers. all headers have to be sent before any output unless you buffer the output (which we dont). >=20 >=20 >=20 > cpj >=20 >=20 >=20 >=20 >=20 >=20 >=20 > -------Original Message------- >=20 > > From: Jeremy Eden <ede...@ho...> >=20 > > Subject:=3D20 >=20 > Re: [Etest-devel] Re: Re: [Etest-devel] Re: Re: [Etest-devel] Re:=20 > [Etest- devel] warnings and other questions >=20 > > Sent: Dec 12 2003 13:36:59 >=20 > > >=20 > > I think I figured out why it was giving me those warnings.=3DA0=3DA0There are blank >=20 > > lines after the last '?>' in configure.php and mysql_sessions.inc.php.=3DA0=3DA0This >=20 > > is somehow causing the headers to be sent because when I removed them I was >=20 > > working again just fine and the sessions were working with no=20 > more warnings. >=20 > > I don't know if this blank is being seen as html = code.=3DA0=3DA0Does this make sense >=20 > > to anyone? >=20 > > =3D20 >=20 > > ----- Original Message ----- >=20 > > From: "Craig P Jolicoeur" >=20 > > To: >=20 > > Sent: Friday, December 12, 2003 12:35 PM >=20 > > Subject: [Etest-devel] Re: Re: [Etest-devel] Re: Re:=20 > [Etest-devel] Re: >=20 > > [Etest-devel] warnings and other questions >=20 > > =3D20 >=20 > > =3D20 >=20 > > we arent calling the sess_init().=3DA0=3DA0we set up the = varibles in configure.php >=20 > > so we dont need to call sess_init().=3DA0=3DA0there will be not documentation on it >=20 > > since it isnt an actually PHP builtin function but a=20 > user-defined function. >=20 > > but, we arent calling it right now, we set up the variables ourselves in >=20 > > configure.php that sess_init() would have set up. >=20 > > =3D20 >=20 > > =3D20 >=20 > > =3D20 >=20 > > =3D20 >=20 > > =3D20 >=20 > > =3D20 >=20 > > =3D20 >=20 > > =3DA0=3DA0 -------Original Message------- >=20 > > =3D20 >=20 > > =3DA0=3DA0 > From: Jeremy Eden >=20 > > =3D20 >=20 > > =3DA0=3DA0 > Subject: >=20 > > =3D20 >=20 > > Re: [Etest-devel] Re: Re: [Etest-devel] Re: [Etest-devel]=20 > warnings and other >=20 > > questions >=20 > > =3D20 >=20 > > =3DA0=3DA0 > Sent: Dec 12 2003 11:03:39 >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0How does the sess_init function get = called? I=20 > don't see any call to >=20 > > it and >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0I don't see any mention of it in the PHP = docs. >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0----- Original Message ----- >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0From: "Craig P Jolicoeur" >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0To: >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0Sent: Friday, December 12, 2003 10:45 AM >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0Subject: [Etest-devel] Re: Re: = [Etest-devel] Re: [Etest-devel] >=20 > > warnings and >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0other questions >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0why dont you just change your etest user = password to 'protocol' in >=20 > > your >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0database so you dont have to make that = change everytime?? that is >=20 > > the >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0correct password we are using now. >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0i dont know what to tell you. I have no = more=20 > ideas. maybe some of >=20 > > the >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0others can help you. Chris?? Brad?? any = ideas. are you guys having >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0problems to or are you fine like me? >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0cpj >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0-------Original Message------- >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> From: Jeremy Eden >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> Subject: >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0Re: [Etest-devel] Re: [Etest-devel] = warnings and other questions >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> Sent: Dec 12 2003 10:15:41 >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> I have done some more looking and the = sessions=20 > are not working >=20 > > on >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0my machine >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> at all. Is there something else that = needs to be done with the >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0change from >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> having sessions stored to a directory = vs. stored > in the >=20 > > database. >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0Something >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> like a PHP.INI change? I am stuck until = the sessions work on >=20 > > my >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0machine. I >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> can't even continue developing since I = can't get past the >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0admin_home page. >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> The only change that I did, was to the configure.php file. I >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0changed the >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> DB_HOST to be 'localhost' instead of = 'mysql' because the check >=20 > > for >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0the >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> localhost IP doesn't work on my machine = because=20 > my server has >=20 > > a >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0static IP. >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> I also changed the DBPassword to 'etest' = instead of 'protocol' >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0because that >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> was how I had setup the MySQL database = before.=20 > It doesn't seem >=20 > > like >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0either >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> of these two changes should affect = sessions=20 > though. Any ideas? >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> ----- Original Message ----- >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> From: "Craig P Jolicoeur" >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> To: >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> Sent: Friday, December 12, 2003 7:39 AM >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> Subject: RE: [Etest-devel] Re: = [Etest-devel] warnings and >=20 > > other >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0questions >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> I am not sure what to tell you. The = admin and student pages >=20 > > work >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0fine >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> on my machine, and on the live = sourceforge site. There are no >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0errors >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> being thrown like that. The sessions = work fine.=20 > I am not sure >=20 > > where >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> your problem is coming from. Is anyone = else=20 > having the same >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0problem?? >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> My thoughts are that it is probably = something on your machine >=20 > > since >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0it >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> works fine for me and on the sf site. >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> You may still see some records in the etest_sessions table but >=20 > > they >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0most >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> likely are expired. The will still be = there if=20 > the user didn't >=20 > > log >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0out >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> and just closed the browser or something = like=20 > that. The reason >=20 > > they >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0are >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> there is no garbage collection has been = run on expired >=20 > > sessions. I >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0will >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> have to implement something for that = soon. >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> -----Original Message----- >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> From: = ete...@li... >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> = [mailto:ete...@li...] > On Behalf Of >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0Jeremy >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> Eden >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> Sent: Friday, December 12, 2003 6:55 AM >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> To: ete...@li... >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> Subject: Re: [Etest-devel] Re: = [Etest-devel] warnings and >=20 > > other >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> questions >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> I am starting my pages like you have in = the=20 > example and it is >=20 > > still >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> giving those warnings and the redirect = to the=20 > login page >=20 > > doesn't >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0work >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> either because the headers are already = sent. It happens also >=20 > > with >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0the >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> student pages not just the admin pages. = Before logging in a >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0student, go >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> to student_grade.php as an example and = you=20 > should be >=20 > > redirected to >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0login >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> the student but instead I get warnings = saying=20 > the headers are >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0already >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> sent and that is all I see. I have the = latest=20 > from CVS, my >=20 > > database >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0is >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> setup with etest_mysql_import.sql and = this is=20 > still happening. >=20 > > I am >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> running the website on a WinXP Home, = MySQL=20 > 4.0.16, PHP 4.3.3 >=20 > > and >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0Apache >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> 1.3. >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> If no one is connected to the etest = website (on=20 > my webserver) >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0should I >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> still see records in the etest_sessions = table? >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> For the logout.php file the admin pages = only set >=20 > > 'adminusername' >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0and >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> 'Admin_Name' SESSION vars. >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> ----- Original Message ----- >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> From: "Craig P Jolicoeur" >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> To: >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> Sent: Thursday, December 11, 2003 2:04 = PM >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> Subject: [Etest-devel] Re: [Etest-devel] = > warnings and other >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0questions >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> This is how you should start your pages = now.=20 > just include the >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> configure.php file and then do your = $_SESSION ['username'] >=20 > > check to >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0see >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> if the user is logged in. then setup = your=20 > variables and >=20 > > include >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> html_header.php. Thats all you need to = do now.=20 > The >=20 > > configure.php >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0files >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> does everything for you. It sets all the = > variable constants, >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0includes >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> the header.php file, setups the MySQL = session management file, >=20 > > and >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0then >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> starts your session. All of this is done = for you now in the >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> configure.php file. just start your = pages like >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> this: >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> require('../includes/configure.php'); >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> if (!isset($_SESSION['username'])) >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> { >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> header("location: ../index.php"); >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> exit; >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> } >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> $pagetitle =3D3D "View Grades"; >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> $stylesheet =3D3D "student_basics.css"; >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> $navbarname =3D3D >=20 > > =3D20 >=20 > > =3DA0=3DA0 = >=3DA0=3DA0"../student_navbar/student_navbar_print.inc"; >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> require('../includes/html_header.php'); >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> if you are doing that, it should work = fine for=20 > you. also, you >=20 > > need >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0to >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> make sure your database is set up = correctly to handle the new >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0session >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> management table. import the=20 > etest_mysql_import.sql file into >=20 > > your >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0db >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> to set it up properly. >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> about deleting teachers, no teacher = should be deleted if they >=20 > > have >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> associated tests, courses, etc... Really = a=20 > teacher shouldnt >=20 > > have to >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0be >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> deleted, since schools will probably = want to=20 > keep records of >=20 > > them >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0on >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> file for a long time, but we still = should allow them to be >=20 > > deleted >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0if >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> they truly do want to. >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> craig >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> -------Original Message------- >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> > From: Jeremy Eden >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> > Subject: >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> [Etest-devel] warnings and other = questions >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> > Sent: Dec 11 2003 12:47:18 >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> > After updating this morning I started = getting=20 > PHP >=20 > > warnings on >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> every admin >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> > page, see below: >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> > Warning: session_start() Cannot send = session cookie - >=20 > > headers >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> already sent >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> > by (...mysql_sessions.inc.php:636) in configure.php:110 >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> > Warning: session_start() Cannot send = session=20 > cache >=20 > > limiter - >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> headers >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> > already sent by=20 > (...mysql_sessions.inc.php:636) in >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> configure.php:110 >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> > I am running Apache on WinXP. I also = have=20 > noticed that >=20 > > now >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0that >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> the >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> > headers.php is in configure.php the = redirects=20 > to the >=20 > > login >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0page >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> don't work >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> > anymore because the headers are = already sent. These might >=20 > > be >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> related >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> > issues. >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> > I am almost done with the admin = teachers pages > I just >=20 > > have one >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> question >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> > about deleting a teacher. Is a teacher = allowed > to be >=20 > > deleted >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0if a >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> course >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> > they are teaching already has had = tests or has students >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0enrolled? >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> I would >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> > say no, but I would like more input. = In the meantime I am >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0starting >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> work on >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> > the admin classes pages. >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> > Jeremy >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> > >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > -------------------------------------------------- ----- >=20 > > =3D20 >=20 > > =3DA0=3DA0 > >=20 > > =3D20 >=20 > > =3DA0=3DA0 >=3DA0=3DA0> >=20 > > =3D20 >=20 > > =3DA... [truncated message content] |
From: <cpj...@th...> - 2003-12-12 21:43:26
|
Hey Chris, are you signing your messages with PGP or something?? the reason I ask, is becuase during the day, I have to check my email at work on a webmail box and lately (the past 2 days) sometimes your email doesnt show it, but has an attachment of "clearsigned data". when i try to open the attachement in a text editor I dont get anything. if you are signing your email, could you not anymore, because i am having trouble reading your mail while I work on the project here at work. cpj |
From: <cpj...@th...> - 2003-12-12 21:34:46
|
there are several reasons why we decided to store session info in the db. the need to do this started with a problem we were having with the sourceforge live testing version of etest. the sessions werent being kept from page to page and we didnt know why. I found out that the reason was because sourceforge has 5 web servers that run load-balancing software to distribute requests. so we were getting the login page from one server and storing our login info there, and then when we clicked a link to another page, that page might be sent to us from one of the other servers which didnt have out session info on it so we were being redirected to the login as if we never had logged in. so the two ways to get around this were to set the session_save_path() value to a folder in our webroot directory or to write our own session management functions using our mysql database. we chose to use the db because of the greater security that it provides for one reason. we didnt have to open up a folder in our webroot directory that all users could have access to and risk security issues through that. by using the db method we can also match all the session data to a users ip address to prevent (as chris called it) "session fixation", where another user "hijacks some session info as it is passed, grabs the session_id, and then writes out there own session info. with the db, we now map the session id to an individual ip address and check to make sure all session requests to that session_id come from the same ip address. another reason was portability. since we will have the mysql server anyways with our software, it made sense to use it for this need as well. plus, it was easy enough to implement and very easy for us to manage. =20 that pretty much sums it up. cpj -------Original Message------- > From: Brad <pie...@mt...> > Subject:=20 [Etest-devel] Re: Etest-devel digest, Vol 1 #19 - 3 msgs > Sent: Dec 12 2003 15:02:29 > > Can someone bring me up to speed on why we are even storing the sessions in > the db?=A0=A0Is this really necessary?=A0=A0I'm assuming for security reasons but > would like an explanation.=A0=A0I have been very busy lately and have not had > much time to program.=A0=A0Therefore, my code is not using all of the new > configuration files.=A0=A0I plan to make a clone of the student or admin home > page to use as the instructor home page, but would like some explanation > basically for my understanding. > =20 > Thanks, > Brad > =20 > On Fri, 12 Dec 2003 11:35:01 -0800, etest-devel- > re...@li... wrote : > =20 > > Send Etest-devel mailing list submissions to > > =09 ete...@li... > > > > To subscribe or unsubscribe via the World Wide Web, visit > > =09 https://lists.sourceforge.net/lists/listinfo/etest-devel > > or, via email, send a message with subject or body 'help' to > > =09 ete...@li... > > > > You can reach the person managing the list at > > =09 ete...@li... > > > > When replying, please edit your Subject line so it is more specific > > than "Re: Contents of Etest-devel digest..." > > > > > > Today's Topics: > > > >=A0=A0=A0=A01. Re: Re: Re: [Etest-devel] Re: Re: [Etest-devel] Re: [Etest-devel] > warnings and other questions (Jeremy Eden) > >=A0=A0=A0=A02. Re: warnings and other questions (Chris Wanstrath) > >=A0=A0=A0=A03. =3D?iso-8859-1?B? > UmU6IFJlOiBbRXRlc3QtZGV2ZWxdIFJlOiBSZTogW0V0ZXN0LWRldmVsXSBSZTogUmU6IFtFdGVz > dC1kZXZlbF0gUmU6IFtFdGVzdC1kZXZlbF0gd2FybmluZ3MgYW5kIG90aGVyIHF1ZXN0aW9ucw=3D=3D > =3D (=3D?iso-8859-1?B?Q3JhaWcgUCBKb2xpY29ldXI=3D?=3D) > > > > --__--__-- > > > > Message: 1 > > From: "Jeremy Eden" > > To: > > Subject: Re: [Etest-devel] Re: Re: [Etest-devel] Re: Re: [Etest-devel] > Re: [Etest-devel] warnings and other questions > > Date: Fri, 12 Dec 2003 13:36:59 -0500 > > Reply-To: ete...@li... > > > > I think I figured out why it was giving me those warnings.=A0=A0There are > blank > > lines after the last '?>' in configure.php and mysql_sessions.inc.php.=A0=A0 > This > > is somehow causing the headers to be sent because when I removed them I > was > > working again just fine and the sessions were working with no more > warnings. > > I don't know if this blank is being seen as html code.=A0=A0Does this make > sense > > to anyone? > > > > ----- Original Message ----- > > From: "Craig P Jolicoeur" > > To: > > Sent: Friday, December 12, 2003 12:35 PM > > Subject: [Etest-devel] Re: Re: [Etest-devel] Re: Re: [Etest-devel] Re: > > [Etest-devel] warnings and other questions > > > > > > we arent calling the sess_init().=A0=A0we set up the varibles in configure.php > > so we dont need to call sess_init().=A0=A0there will be not documentation on > it > > since it isnt an actually PHP builtin function but a user-defined > function. > > but, we arent calling it right now, we set up the variables ourselves in > > configure.php that sess_init() would have set up. > > > > > > > > > > > > > > > >=A0=A0=A0=A0-------Original Message------- > > > >=A0=A0=A0=A0> From: Jeremy Eden > > > >=A0=A0=A0=A0> Subject: > > > > Re: [Etest-devel] Re: Re: [Etest-devel] Re: [Etest-devel] warnings and > other > > questions > > > >=A0=A0=A0=A0> Sent: Dec 12 2003 11:03:39 > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0How does the sess_init function get called? I don't see any call > to > > it and > > > >=A0=A0=A0=A0>=A0=A0I don't see any mention of it in the PHP docs. > > > >=A0=A0=A0=A0>=A0=A0----- Original Message ----- > > > >=A0=A0=A0=A0>=A0=A0From: "Craig P Jolicoeur" > > > >=A0=A0=A0=A0>=A0=A0To: > > > >=A0=A0=A0=A0>=A0=A0Sent: Friday, December 12, 2003 10:45 AM > > > >=A0=A0=A0=A0>=A0=A0Subject: [Etest-devel] Re: Re: [Etest-devel] Re: [Etest-devel] > > warnings and > > > >=A0=A0=A0=A0>=A0=A0other questions > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0why dont you just change your etest user password to 'protocol' > in > > your > > > >=A0=A0=A0=A0>=A0=A0database so you dont have to make that change everytime?? that is > > the > > > >=A0=A0=A0=A0>=A0=A0correct password we are using now. > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0i dont know what to tell you. I have no more ideas. maybe some of > > the > > > >=A0=A0=A0=A0>=A0=A0others can help you. Chris?? Brad?? any ideas. are you guys > having > > > >=A0=A0=A0=A0>=A0=A0problems to or are you fine like me? > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0cpj > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0-------Original Message------- > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> From: Jeremy Eden > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> Subject: > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0Re: [Etest-devel] Re: [Etest-devel] warnings and other questions > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> Sent: Dec 12 2003 10:15:41 > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> I have done some more looking and the sessions are not > working > > on > > > >=A0=A0=A0=A0>=A0=A0my machine > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> at all. Is there something else that needs to be done with > the > > > >=A0=A0=A0=A0>=A0=A0change from > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> having sessions stored to a directory vs. stored in the > > database. > > > >=A0=A0=A0=A0>=A0=A0Something > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> like a PHP.INI change? I am stuck until the sessions work on > > my > > > >=A0=A0=A0=A0>=A0=A0machine. I > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> can't even continue developing since I can't get past the > > > >=A0=A0=A0=A0>=A0=A0admin_home page. > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> The only change that I did, was to the configure.php file. I > > > >=A0=A0=A0=A0>=A0=A0changed the > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> DB_HOST to be 'localhost' instead of 'mysql' because the > check > > for > > > >=A0=A0=A0=A0>=A0=A0the > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> localhost IP doesn't work on my machine because my server > has > > a > > > >=A0=A0=A0=A0>=A0=A0static IP. > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> I also changed the DBPassword to 'etest' instead > of 'protocol' > > > >=A0=A0=A0=A0>=A0=A0because that > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> was how I had setup the MySQL database before. It doesn't > seem > > like > > > >=A0=A0=A0=A0>=A0=A0either > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> of these two changes should affect sessions though. Any > ideas? > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> ----- Original Message ----- > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> From: "Craig P Jolicoeur" > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> To: > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> Sent: Friday, December 12, 2003 7:39 AM > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> Subject: RE: [Etest-devel] Re: [Etest-devel] warnings and > > other > > > >=A0=A0=A0=A0>=A0=A0questions > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> I am not sure what to tell you. The admin and student pages > > work > > > >=A0=A0=A0=A0>=A0=A0fine > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> on my machine, and on the live sourceforge site. There are > no > > > >=A0=A0=A0=A0>=A0=A0errors > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> being thrown like that. The sessions work fine. I am not > sure > > where > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> your problem is coming from. Is anyone else having the same > > > >=A0=A0=A0=A0>=A0=A0problem?? > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> My thoughts are that it is probably something on your > machine > > since > > > >=A0=A0=A0=A0>=A0=A0it > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> works fine for me and on the sf site. > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> You may still see some records in the etest_sessions table > but > > they > > > >=A0=A0=A0=A0>=A0=A0most > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> likely are expired. The will still be there if the user > didn't > > log > > > >=A0=A0=A0=A0>=A0=A0out > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> and just closed the browser or something like that. The > reason > > they > > > >=A0=A0=A0=A0>=A0=A0are > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> there is no garbage collection has been run on expired > > sessions. I > > > >=A0=A0=A0=A0>=A0=A0will > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> have to implement something for that soon. > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> -----Original Message----- > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> From: ete...@li... > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> [mailto:ete...@li...] On Behalf > Of > > > >=A0=A0=A0=A0>=A0=A0Jeremy > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> Eden > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> Sent: Friday, December 12, 2003 6:55 AM > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> To: ete...@li... > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> Subject: Re: [Etest-devel] Re: [Etest-devel] warnings and > > other > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> questions > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> I am starting my pages like you have in the example and it > is > > still > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> giving those warnings and the redirect to the login page > > doesn't > > > >=A0=A0=A0=A0>=A0=A0work > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> either because the headers are already sent. It happens also > > with > > > >=A0=A0=A0=A0>=A0=A0the > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> student pages not just the admin pages. Before logging in a > > > >=A0=A0=A0=A0>=A0=A0student, go > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> to student_grade.php as an example and you should be > > redirected to > > > >=A0=A0=A0=A0>=A0=A0login > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> the student but instead I get warnings saying the headers > are > > > >=A0=A0=A0=A0>=A0=A0already > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> sent and that is all I see. I have the latest from CVS, my > > database > > > >=A0=A0=A0=A0>=A0=A0is > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> setup with etest_mysql_import.sql and this is still > happening. > > I am > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> running the website on a WinXP Home, MySQL 4.0.16, PHP 4.3.3 > > and > > > >=A0=A0=A0=A0>=A0=A0Apache > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> 1.3. > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> If no one is connected to the etest website (on my > webserver) > > > >=A0=A0=A0=A0>=A0=A0should I > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> still see records in the etest_sessions table? > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> For the logout.php file the admin pages only set > > 'adminusername' > > > >=A0=A0=A0=A0>=A0=A0and > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> 'Admin_Name' SESSION vars. > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> ----- Original Message ----- > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> From: "Craig P Jolicoeur" > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> To: > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> Sent: Thursday, December 11, 2003 2:04 PM > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> Subject: [Etest-devel] Re: [Etest-devel] warnings and other > > > >=A0=A0=A0=A0>=A0=A0questions > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> This is how you should start your pages now. just include > the > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> configure.php file and then do your $_SESSION['username'] > > check to > > > >=A0=A0=A0=A0>=A0=A0see > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> if the user is logged in. then setup your variables and > > include > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> html_header.php. Thats all you need to do now. The > > configure.php > > > >=A0=A0=A0=A0>=A0=A0files > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> does everything for you. It sets all the variable constants, > > > >=A0=A0=A0=A0>=A0=A0includes > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> the header.php file, setups the MySQL session management > file, > > and > > > >=A0=A0=A0=A0>=A0=A0then > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> starts your session. All of this is done for you now in the > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> configure.php file. just start your pages like > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> this: > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> require('../includes/configure.php'); > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> if (!isset($_SESSION['username'])) > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> { > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> header("location: ../index.php"); > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> exit; > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> } > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> $pagetitle =3D "View Grades"; > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> $stylesheet =3D "student_basics.css"; > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> $navbarname =3D > > > >=A0=A0=A0=A0>=A0=A0"../student_navbar/student_navbar_print.inc"; > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> require('../includes/html_header.php'); > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> if you are doing that, it should work fine for you. also, > you > > need > > > >=A0=A0=A0=A0>=A0=A0to > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> make sure your database is set up correctly to handle the > new > > > >=A0=A0=A0=A0>=A0=A0session > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> management table. import the etest_mysql_import.sql file > into > > your > > > >=A0=A0=A0=A0>=A0=A0db > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> to set it up properly. > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> about deleting teachers, no teacher should be deleted if > they > > have > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> associated tests, courses, etc... Really a teacher shouldnt > > have to > > > >=A0=A0=A0=A0>=A0=A0be > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> deleted, since schools will probably want to keep records of > > them > > > >=A0=A0=A0=A0>=A0=A0on > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> file for a long time, but we still should allow them to be > > deleted > > > >=A0=A0=A0=A0>=A0=A0if > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> they truly do want to. > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> craig > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> -------Original Message------- > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > From: Jeremy Eden > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > Subject: > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> [Etest-devel] warnings and other questions > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > Sent: Dec 11 2003 12:47:18 > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > After updating this morning I started getting PHP > > warnings on > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> every admin > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > page, see below: > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > Warning: session_start() Cannot send session cookie - > > headers > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> already sent > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > by (...mysql_sessions.inc.php:636) in configure.php:110 > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > Warning: session_start() Cannot send session cache > > limiter - > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> headers > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > already sent by (...mysql_sessions.inc.php:636) in > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> configure.php:110 > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > I am running Apache on WinXP. I also have noticed that > > now > > > >=A0=A0=A0=A0>=A0=A0that > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> the > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > headers.php is in configure.php the redirects to the > > login > > > >=A0=A0=A0=A0>=A0=A0page > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> don't work > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > anymore because the headers are already sent. These > might > > be > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> related > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > issues. > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > I am almost done with the admin teachers pages I just > > have one > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> question > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > about deleting a teacher. Is a teacher allowed to be > > deleted > > > >=A0=A0=A0=A0>=A0=A0if a > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> course > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > they are teaching already has had tests or has students > > > >=A0=A0=A0=A0>=A0=A0enrolled? > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> I would > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > say no, but I would like more input. In the meantime I > am > > > >=A0=A0=A0=A0>=A0=A0starting > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> work on > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > the admin classes pages. > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > Jeremy > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > ------------------------------------------------------- > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > This SF.net email is sponsored by: IBM Linux Tutorials. > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > Become an expert in LINUX or just sharpen your skills. > > Sign up > > > >=A0=A0=A0=A0>=A0=A0for > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> IBM's > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > Free Linux Tutorials. Learn everything from the bash > > shell to > > > >=A0=A0=A0=A0>=A0=A0sys > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> admin. > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > Click now! > > > >=A0=A0=A0=A0>=A0=A0http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > [INVALID FOOTER] > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> -------Original Message------- > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> ------------------------------------------------------- > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> This SF.net email is sponsored by: IBM Linux Tutorials. > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> Become an expert in LINUX or just sharpen your skills. Sign > up > > for > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> IBM's Free Linux Tutorials. Learn everything from the bash > > shell to > > > >=A0=A0=A0=A0>=A0=A0sys > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> admin. Click now! > > > >=A0=A0=A0=A0>=A0=A0http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> [INVALID FOOTER] > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> ------------------------------------------------------- > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> This SF.net email is sponsored by: IBM Linux Tutorials. > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> Become an expert in LINUX or just sharpen your skills. Sign > up > > for > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> IBM's Free Linux Tutorials. Learn everything from the bash > > shell to > > > >=A0=A0=A0=A0>=A0=A0sys > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> admin. Click now! > > > >=A0=A0=A0=A0>=A0=A0http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> [INVALID FOOTER] > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> ------------------------------------------------------- > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> This SF.net email is sponsored by: IBM Linux Tutorials. > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> Become an expert in LINUX or just sharpen your skills. Sign > up > > for > > > >=A0=A0=A0=A0>=A0=A0IBM's > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> Free Linux Tutorials. Learn everything from the bash shell > to > > sys > > > >=A0=A0=A0=A0>=A0=A0admin. > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> Click now! > > http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> [INVALID FOOTER] > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> ------------------------------------------------------- > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> This SF.net email is sponsored by: IBM Linux Tutorials. > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> Become an expert in LINUX or just sharpen your skills. Sign > up > > for > > > >=A0=A0=A0=A0>=A0=A0IBM's > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> Free Linux Tutorials. Learn everything from the bash shell > to > > sys > > > >=A0=A0=A0=A0>=A0=A0admin. > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> Click now! > > > >=A0=A0=A0=A0>=A0=A0http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0> [INVALID FOOTER] > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0-------Original Message------- > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0------------------------------------------------------- > > > >=A0=A0=A0=A0>=A0=A0This SF.net email is sponsored by: IBM Linux Tutorials. > > > >=A0=A0=A0=A0>=A0=A0Become an expert in LINUX or just sharpen your skills. Sign up > for > > IBM's > > > >=A0=A0=A0=A0>=A0=A0Free Linux Tutorials. Learn everything from the bash shell to sys > > admin. > > > >=A0=A0=A0=A0>=A0=A0Click now! > > http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick > > > >=A0=A0=A0=A0>=A0=A0[INVALID FOOTER] > > > >=A0=A0=A0=A0-------Original Message------- > > > > > > > > > > > > > > --__--__-- > > > > Message: 2 > > From: Chris Wanstrath > > To: ete...@li... > > Subject: Re: [Etest-devel] warnings and other questions > > Date: Fri, 12 Dec 2003 13:54:01 +0000 > > Reply-To: ete...@li... > > > > =3D2D----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > On Friday 12 December 2003 06:36 pm, Jeremy Eden wrote: > > > I think I figured out why it was giving me those warnings.=A0=A0There are > bla=3D > > nk > > > lines after the last '?>' in configure.php and > mysql_sessions.inc.php.=3D20 > > > This is somehow causing the headers to be sent because when I removed > them > > > I was working again just fine and the sessions were working with no more > > > warnings. I don't know if this blank is being seen as html code.=A0=A0Does > th=3D > > is > > > make sense to anyone? > > > > Yes, I should have looked for that but it never occured to me.=A0=A0I've had > th=3D > > at=3D20 > > problem before.=A0=A0The blank line is sent as n which is not rendered in > HTML=3D > > =3D20 > > but is printed, nonetheless.=A0=A0So technically, there was information sent. > =3D > > =3D20 > > Nice catch. > > > > =3D2D --=3D20 > > Chris Wanstrath > > ch...@ba... | www.badstatic.com > > > > =3D2D----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.2.3 (GNU/Linux) > > > > iD8DBQE/2ch7P8e1G1N5RJkRAjAnAJ9KE5FKvbIs1HmO/wovY9u6CR4gCQCdGHeO > > A3RC9icbxuV8uJatzBQ5ygg=3D3D > > =3D3DzMMs > > =3D2D----END PGP SIGNATURE----- > > > > > > > > --__--__-- > > > > Message: 3 > > From: "=3D?iso-8859-1?B?Q3JhaWcgUCBKb2xpY29ldXI=3D?=3D" > =20 > > To: ete...@li... > > Date: Fri, 12 Dec 2003 14:35:37 -0500 > > Subject: [Etest-devel] =3D?iso-8859-1?B? > UmU6IFJlOiBbRXRlc3QtZGV2ZWxdIFJlOiBSZTogW0V0ZXN0LWRldmVsXSBSZTogUmU6IFtFdGVz > dC1kZXZlbF0gUmU6IFtFdGVzdC1kZXZlbF0gd2FybmluZ3MgYW5kIG90aGVyIHF1ZXN0aW9ucw=3D=3D > =3D > > Reply-To: ete...@li... > > > > that kind of makes sense if that was your problem.=A0=A0if there are some > characters for newlines that are being output to the browser, if > would affect the headers.=A0=A0all headers have to be sent before any output > unless you buffer the output (which we dont). > > > > > > > > cpj > > > > > > > > > > > > > > > >=A0=A0=A0=A0-------Original Message------- > > > >=A0=A0=A0=A0> From: Jeremy Eden > > > >=A0=A0=A0=A0> Subject:=3D20 > > > > Re: [Etest-devel] Re: Re: [Etest-devel] Re: Re: [Etest-devel] Re: [Etest- > devel] warnings and other questions > > > >=A0=A0=A0=A0> Sent: Dec 12 2003 13:36:59 > > > >=A0=A0=A0=A0> > > > >=A0=A0=A0=A0>=A0=A0I think I figured out why it was giving me those > warnings.=3DA0=3DA0There are blank > > > >=A0=A0=A0=A0>=A0=A0lines after the last '?>' in configure.php and > mysql_sessions.inc.php.=3DA0=3DA0This > > > >=A0=A0=A0=A0>=A0=A0is somehow causing the headers to be sent because when I removed > them I was > > > >=A0=A0=A0=A0>=A0=A0working again just fine and the sessions were working with no more > warnings. > > > >=A0=A0=A0=A0>=A0=A0I don't know if this blank is being seen as html code.=3DA0=3DA0Does > this make sense > > > >=A0=A0=A0=A0>=A0=A0to anyone? > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0----- Original Message ----- > > > >=A0=A0=A0=A0>=A0=A0From: "Craig P Jolicoeur" > > > >=A0=A0=A0=A0>=A0=A0To: > > > >=A0=A0=A0=A0>=A0=A0Sent: Friday, December 12, 2003 12:35 PM > > > >=A0=A0=A0=A0>=A0=A0Subject: [Etest-devel] Re: Re: [Etest-devel] Re: Re: [Etest-devel] > Re: > > > >=A0=A0=A0=A0>=A0=A0[Etest-devel] warnings and other questions > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0we arent calling the sess_init().=3DA0=3DA0we set up the varibles in > configure.php > > > >=A0=A0=A0=A0>=A0=A0so we dont need to call sess_init().=3DA0=3DA0there will be not > documentation on it > > > >=A0=A0=A0=A0>=A0=A0since it isnt an actually PHP builtin function but a user-defined > function. > > > >=A0=A0=A0=A0>=A0=A0but, we arent calling it right now, we set up the variables > ourselves in > > > >=A0=A0=A0=A0>=A0=A0configure.php that sess_init() would have set up. > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 -------Original Message------- > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > From: Jeremy Eden > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > Subject: > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0Re: [Etest-devel] Re: Re: [Etest-devel] Re: [Etest-devel] warnings > and other > > > >=A0=A0=A0=A0>=A0=A0questions > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > Sent: Dec 12 2003 11:03:39 > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0How does the sess_init function get called? I don't > see any call to > > > >=A0=A0=A0=A0>=A0=A0it and > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0I don't see any mention of it in the PHP docs. > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0----- Original Message ----- > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0From: "Craig P Jolicoeur" > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0To: > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0Sent: Friday, December 12, 2003 10:45 AM > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0Subject: [Etest-devel] Re: Re: [Etest-devel] Re: > [Etest-devel] > > > >=A0=A0=A0=A0>=A0=A0warnings and > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0other questions > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0why dont you just change your etest user password > to 'protocol' in > > > >=A0=A0=A0=A0>=A0=A0your > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0database so you dont have to make that change > everytime?? that is > > > >=A0=A0=A0=A0>=A0=A0the > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0correct password we are using now. > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0i dont know what to tell you. I have no more ideas. > maybe some of > > > >=A0=A0=A0=A0>=A0=A0the > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0others can help you. Chris?? Brad?? any ideas. are > you guys having > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0problems to or are you fine like me? > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0cpj > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0-------Original Message------- > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> From: Jeremy Eden > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> Subject: > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0Re: [Etest-devel] Re: [Etest-devel] warnings and > other questions > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> Sent: Dec 12 2003 10:15:41 > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> I have done some more looking and the sessions are > not working > > > >=A0=A0=A0=A0>=A0=A0on > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0my machine > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> at all. Is there something else that needs to be > done with the > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0change from > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> having sessions stored to a directory vs. stored in > the > > > >=A0=A0=A0=A0>=A0=A0database. > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0Something > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> like a PHP.INI change? I am stuck until the > sessions work on > > > >=A0=A0=A0=A0>=A0=A0my > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0machine. I > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> can't even continue developing since I can't get > past the > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0admin_home page. > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> The only change that I did, was to the > configure.php file. I > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0changed the > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> DB_HOST to be 'localhost' instead of 'mysql' > because the check > > > >=A0=A0=A0=A0>=A0=A0for > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0the > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> localhost IP doesn't work on my machine because my > server has > > > >=A0=A0=A0=A0>=A0=A0a > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0static IP. > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> I also changed the DBPassword to 'etest' instead > of 'protocol' > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0because that > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> was how I had setup the MySQL database before. It > doesn't seem > > > >=A0=A0=A0=A0>=A0=A0like > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0either > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> of these two changes should affect sessions though. > Any ideas? > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> ----- Original Message ----- > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> From: "Craig P Jolicoeur" > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> To: > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> Sent: Friday, December 12, 2003 7:39 AM > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> Subject: RE: [Etest-devel] Re: [Etest-devel] > warnings and > > > >=A0=A0=A0=A0>=A0=A0other > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0questions > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> I am not sure what to tell you. The admin and > student pages > > > >=A0=A0=A0=A0>=A0=A0work > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0fine > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> on my machine, and on the live sourceforge site. > There are no > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0errors > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> being thrown like that. The sessions work fine. I > am not sure > > > >=A0=A0=A0=A0>=A0=A0where > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> your problem is coming from. Is anyone else having > the same > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0problem?? > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> My thoughts are that it is probably something on > your machine > > > >=A0=A0=A0=A0>=A0=A0since > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0it > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> works fine for me and on the sf site. > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> You may still see some records in the > etest_sessions table but > > > >=A0=A0=A0=A0>=A0=A0they > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0most > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> likely are expired. The will still be there if the > user didn't > > > >=A0=A0=A0=A0>=A0=A0log > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0out > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> and just closed the browser or something like that. > The reason > > > >=A0=A0=A0=A0>=A0=A0they > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0are > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> there is no garbage collection has been run on > expired > > > >=A0=A0=A0=A0>=A0=A0sessions. I > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0will > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> have to implement something for that soon. > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> -----Original Message----- > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> From: ete...@li... > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> [mailto:ete...@li...] On > Behalf Of > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0Jeremy > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> Eden > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> Sent: Friday, December 12, 2003 6:55 AM > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> To: ete...@li... > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> Subject: Re: [Etest-devel] Re: [Etest-devel] > warnings and > > > >=A0=A0=A0=A0>=A0=A0other > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> questions > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> I am starting my pages like you have in the example > and it is > > > >=A0=A0=A0=A0>=A0=A0still > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> giving those warnings and the redirect to the login > page > > > >=A0=A0=A0=A0>=A0=A0doesn't > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0work > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> either because the headers are already sent. It > happens also > > > >=A0=A0=A0=A0>=A0=A0with > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0the > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> student pages not just the admin pages. Before > logging in a > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0student, go > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 > > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0=A0>=A0=A0=3DA0=3DA0 >=3DA0=3DA0> to student_grade.php as an example and you should be > > > >=A0=A0=A0=A0>=A0=A0redirected to > > > >=A0=A0=A0=A0> =3D20 > > > >=A0=A0=A0... [truncated message content] |
From: Chris W. <ch...@ba...> - 2003-12-12 20:35:01
|
=2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 12 December 2003 08:02 pm, Brad wrote: > Can someone bring me up to speed on why we are even storing the sessions = in > the db? Is this really necessary? I'm assuming for security reasons but > would like an explanation. I have been very busy lately and have not had > much time to program. Therefore, my code is not using all of the new > configuration files. I plan to make a clone of the student or admin home > page to use as the instructor home page, but would like some explanation > basically for my understanding. The default way sessions are stored are in files in a /tmp (or C:\temp?)=20 directory. The problem here is that in a shared hosting environment, it's= =20 possible for other users on the web server and running their own pages to=20 access your sessions. Storing the sessions in the database ensures that on= ly=20 our site can access the sessions. =2D --=20 Chris Wanstrath ch...@ba... | www.badstatic.com =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/2d9TP8e1G1N5RJkRAv3dAJ0X8eWROAj8++8l0xyfs0LjqLcPdACdHfLd KbT8JsUV3Cufn4xtDhYL/A8=3D =3D4paM =2D----END PGP SIGNATURE----- |
From: Brad <pie...@mt...> - 2003-12-12 20:21:14
|
Can someone bring me up to speed on why we are even storing the sessions in the db? Is this really necessary? I'm assuming for security reasons but would like an explanation. I have been very busy lately and have not had much time to program. Therefore, my code is not using all of the new configuration files. I plan to make a clone of the student or admin home page to use as the instructor home page, but would like some explanation basically for my understanding. Thanks, Brad On Fri, 12 Dec 2003 11:35:01 -0800, etest-devel- re...@li... wrote : > Send Etest-devel mailing list submissions to > ete...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/etest-devel > or, via email, send a message with subject or body 'help' to > ete...@li... > > You can reach the person managing the list at > ete...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Etest-devel digest..." > > > Today's Topics: > > 1. Re: Re: Re: [Etest-devel] Re: Re: [Etest-devel] Re: [Etest-devel] warnings and other questions (Jeremy Eden) > 2. Re: warnings and other questions (Chris Wanstrath) > 3. =?iso-8859-1?B? UmU6IFJlOiBbRXRlc3QtZGV2ZWxdIFJlOiBSZTogW0V0ZXN0LWRldmVsXSBSZTogUmU6IFtFdGVz dC1kZXZlbF0gUmU6IFtFdGVzdC1kZXZlbF0gd2FybmluZ3MgYW5kIG90aGVyIHF1ZXN0aW9ucw== ?= (=?iso-8859-1?B?Q3JhaWcgUCBKb2xpY29ldXI=?=) > > --__--__-- > > Message: 1 > From: "Jeremy Eden" <ede...@ho...> > To: <ete...@li...> > Subject: Re: [Etest-devel] Re: Re: [Etest-devel] Re: Re: [Etest-devel] Re: [Etest-devel] warnings and other questions > Date: Fri, 12 Dec 2003 13:36:59 -0500 > Reply-To: ete...@li... > > I think I figured out why it was giving me those warnings. There are blank > lines after the last '?>' in configure.php and mysql_sessions.inc.php. This > is somehow causing the headers to be sent because when I removed them I was > working again just fine and the sessions were working with no more warnings. > I don't know if this blank is being seen as html code. Does this make sense > to anyone? > > ----- Original Message ----- > From: "Craig P Jolicoeur" <cpj...@th...> > To: <ete...@li...> > Sent: Friday, December 12, 2003 12:35 PM > Subject: [Etest-devel] Re: Re: [Etest-devel] Re: Re: [Etest-devel] Re: > [Etest-devel] warnings and other questions > > > we arent calling the sess_init(). we set up the varibles in configure.php > so we dont need to call sess_init(). there will be not documentation on it > since it isnt an actually PHP builtin function but a user-defined function. > but, we arent calling it right now, we set up the variables ourselves in > configure.php that sess_init() would have set up. > > > > > > > > -------Original Message------- > > > From: Jeremy Eden <ede...@ho...> > > > Subject: > > Re: [Etest-devel] Re: Re: [Etest-devel] Re: [Etest-devel] warnings and other > questions > > > Sent: Dec 12 2003 11:03:39 > > > > > > 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" > > > To: > > > 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 > > > > > > > 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------- > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > 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------- > > > > > > > --__--__-- > > Message: 2 > From: Chris Wanstrath <ch...@ba...> > To: ete...@li... > Subject: Re: [Etest-devel] warnings and other questions > Date: Fri, 12 Dec 2003 13:54:01 +0000 > Reply-To: ete...@li... > > =2D----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Friday 12 December 2003 06:36 pm, Jeremy Eden wrote: > > I think I figured out why it was giving me those warnings. There are bla= > nk > > lines after the last '?>' in configure.php and mysql_sessions.inc.php.=20 > > This is somehow causing the headers to be sent because when I removed them > > I was working again just fine and the sessions were working with no more > > warnings. I don't know if this blank is being seen as html code. Does th= > is > > make sense to anyone? > > Yes, I should have looked for that but it never occured to me. I've had th= > at=20 > problem before. The blank line is sent as \n which is not rendered in HTML= > =20 > but is printed, nonetheless. So technically, there was information sent. = > =20 > Nice catch. > > =2D --=20 > Chris Wanstrath > ch...@ba... | www.badstatic.com > > =2D----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.3 (GNU/Linux) > > iD8DBQE/2ch7P8e1G1N5RJkRAjAnAJ9KE5FKvbIs1HmO/wovY9u6CR4gCQCdGHeO > A3RC9icbxuV8uJatzBQ5ygg=3D > =3DzMMs > =2D----END PGP SIGNATURE----- > > > > --__--__-- > > Message: 3 > From: "=?iso-8859-1?B?Q3JhaWcgUCBKb2xpY29ldXI=?=" <cpj...@th...> > To: ete...@li... > Date: Fri, 12 Dec 2003 14:35:37 -0500 > Subject: [Etest-devel] =?iso-8859-1?B? UmU6IFJlOiBbRXRlc3QtZGV2ZWxdIFJlOiBSZTogW0V0ZXN0LWRldmVsXSBSZTogUmU6IFtFdGVz dC1kZXZlbF0gUmU6IFtFdGVzdC1kZXZlbF0gd2FybmluZ3MgYW5kIG90aGVyIHF1ZXN0aW9ucw== ?= > Reply-To: ete...@li... > > that kind of makes sense if that was your problem. if there are some <cr><lf> characters for newlines that are being output to the browser, if would affect the headers. all headers have to be sent before any output unless you buffer the output (which we dont). > > > > cpj > > > > > > > > -------Original Message------- > > > From: Jeremy Eden <ede...@ho...> > > > Subject:=20 > > Re: [Etest-devel] Re: Re: [Etest-devel] Re: Re: [Etest-devel] Re: [Etest- devel] warnings and other questions > > > Sent: Dec 12 2003 13:36:59 > > > > > > I think I figured out why it was giving me those warnings.=A0=A0There are blank > > > lines after the last '?>' in configure.php and mysql_sessions.inc.php.=A0=A0This > > > is somehow causing the headers to be sent because when I removed them I was > > > working again just fine and the sessions were working with no more warnings. > > > I don't know if this blank is being seen as html code.=A0=A0Does this make sense > > > to anyone? > > > =20 > > > ----- Original Message ----- > > > From: "Craig P Jolicoeur" > > > To: > > > Sent: Friday, December 12, 2003 12:35 PM > > > Subject: [Etest-devel] Re: Re: [Etest-devel] Re: Re: [Etest-devel] Re: > > > [Etest-devel] warnings and other questions > > > =20 > > > =20 > > > we arent calling the sess_init().=A0=A0we set up the varibles in configure.php > > > so we dont need to call sess_init().=A0=A0there will be not documentation on it > > > since it isnt an actually PHP builtin function but a user-defined function. > > > but, we arent calling it right now, we set up the variables ourselves in > > > configure.php that sess_init() would have set up. > > > =20 > > > =20 > > > =20 > > > =20 > > > =20 > > > =20 > > > =20 > > > =A0=A0 -------Original Message------- > > > =20 > > > =A0=A0 > From: Jeremy Eden > > > =20 > > > =A0=A0 > Subject: > > > =20 > > > Re: [Etest-devel] Re: Re: [Etest-devel] Re: [Etest-devel] warnings and other > > > questions > > > =20 > > > =A0=A0 > Sent: Dec 12 2003 11:03:39 > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0How does the sess_init function get called? I don't see any call to > > > it and > > > =20 > > > =A0=A0 >=A0=A0I don't see any mention of it in the PHP docs. > > > =20 > > > =A0=A0 >=A0=A0----- Original Message ----- > > > =20 > > > =A0=A0 >=A0=A0From: "Craig P Jolicoeur" > > > =20 > > > =A0=A0 >=A0=A0To: > > > =20 > > > =A0=A0 >=A0=A0Sent: Friday, December 12, 2003 10:45 AM > > > =20 > > > =A0=A0 >=A0=A0Subject: [Etest-devel] Re: Re: [Etest-devel] Re: [Etest-devel] > > > warnings and > > > =20 > > > =A0=A0 >=A0=A0other questions > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0why dont you just change your etest user password to 'protocol' in > > > your > > > =20 > > > =A0=A0 >=A0=A0database so you dont have to make that change everytime?? that is > > > the > > > =20 > > > =A0=A0 >=A0=A0correct password we are using now. > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0i dont know what to tell you. I have no more ideas. maybe some of > > > the > > > =20 > > > =A0=A0 >=A0=A0others can help you. Chris?? Brad?? any ideas. are you guys having > > > =20 > > > =A0=A0 >=A0=A0problems to or are you fine like me? > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0cpj > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0-------Original Message------- > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> From: Jeremy Eden > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> Subject: > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0Re: [Etest-devel] Re: [Etest-devel] warnings and other questions > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> Sent: Dec 12 2003 10:15:41 > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> I have done some more looking and the sessions are not working > > > on > > > =20 > > > =A0=A0 >=A0=A0my machine > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> at all. Is there something else that needs to be done with the > > > =20 > > > =A0=A0 >=A0=A0change from > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> having sessions stored to a directory vs. stored in the > > > database. > > > =20 > > > =A0=A0 >=A0=A0Something > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> like a PHP.INI change? I am stuck until the sessions work on > > > my > > > =20 > > > =A0=A0 >=A0=A0machine. I > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> can't even continue developing since I can't get past the > > > =20 > > > =A0=A0 >=A0=A0admin_home page. > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> The only change that I did, was to the configure.php file. I > > > =20 > > > =A0=A0 >=A0=A0changed the > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> DB_HOST to be 'localhost' instead of 'mysql' because the check > > > for > > > =20 > > > =A0=A0 >=A0=A0the > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> localhost IP doesn't work on my machine because my server has > > > a > > > =20 > > > =A0=A0 >=A0=A0static IP. > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> I also changed the DBPassword to 'etest' instead of 'protocol' > > > =20 > > > =A0=A0 >=A0=A0because that > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> was how I had setup the MySQL database before. It doesn't seem > > > like > > > =20 > > > =A0=A0 >=A0=A0either > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> of these two changes should affect sessions though. Any ideas? > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> ----- Original Message ----- > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> From: "Craig P Jolicoeur" > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> To: > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> Sent: Friday, December 12, 2003 7:39 AM > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> Subject: RE: [Etest-devel] Re: [Etest-devel] warnings and > > > other > > > =20 > > > =A0=A0 >=A0=A0questions > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> I am not sure what to tell you. The admin and student pages > > > work > > > =20 > > > =A0=A0 >=A0=A0fine > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> on my machine, and on the live sourceforge site. There are no > > > =20 > > > =A0=A0 >=A0=A0errors > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> being thrown like that. The sessions work fine. I am not sure > > > where > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> your problem is coming from. Is anyone else having the same > > > =20 > > > =A0=A0 >=A0=A0problem?? > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> My thoughts are that it is probably something on your machine > > > since > > > =20 > > > =A0=A0 >=A0=A0it > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> works fine for me and on the sf site. > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> You may still see some records in the etest_sessions table but > > > they > > > =20 > > > =A0=A0 >=A0=A0most > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> likely are expired. The will still be there if the user didn't > > > log > > > =20 > > > =A0=A0 >=A0=A0out > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> and just closed the browser or something like that. The reason > > > they > > > =20 > > > =A0=A0 >=A0=A0are > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> there is no garbage collection has been run on expired > > > sessions. I > > > =20 > > > =A0=A0 >=A0=A0will > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> have to implement something for that soon. > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> -----Original Message----- > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> From: ete...@li... > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> [mailto:ete...@li...] On Behalf Of > > > =20 > > > =A0=A0 >=A0=A0Jeremy > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> Eden > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> Sent: Friday, December 12, 2003 6:55 AM > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> To: ete...@li... > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> Subject: Re: [Etest-devel] Re: [Etest-devel] warnings and > > > other > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> questions > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> I am starting my pages like you have in the example and it is > > > still > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> giving those warnings and the redirect to the login page > > > doesn't > > > =20 > > > =A0=A0 >=A0=A0work > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> either because the headers are already sent. It happens also > > > with > > > =20 > > > =A0=A0 >=A0=A0the > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> student pages not just the admin pages. Before logging in a > > > =20 > > > =A0=A0 >=A0=A0student, go > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> to student_grade.php as an example and you should be > > > redirected to > > > =20 > > > =A0=A0 >=A0=A0login > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> the student but instead I get warnings saying the headers are > > > =20 > > > =A0=A0 >=A0=A0already > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> sent and that is all I see. I have the latest from CVS, my > > > database > > > =20 > > > =A0=A0 >=A0=A0is > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> setup with etest_mysql_import.sql and this is still happening. > > > I am > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> running the website on a WinXP Home, MySQL 4.0.16, PHP 4.3.3 > > > and > > > =20 > > > =A0=A0 >=A0=A0Apache > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> 1.3. > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> If no one is connected to the etest website (on my webserver) > > > =20 > > > =A0=A0 >=A0=A0should I > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> still see records in the etest_sessions table? > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> For the logout.php file the admin pages only set > > > 'adminusername' > > > =20 > > > =A0=A0 >=A0=A0and > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> 'Admin_Name' SESSION vars. > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> ----- Original Message ----- > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> From: "Craig P Jolicoeur" > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> To: > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> Sent: Thursday, December 11, 2003 2:04 PM > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> Subject: [Etest-devel] Re: [Etest-devel] warnings and other > > > =20 > > > =A0=A0 >=A0=A0questions > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> This is how you should start your pages now. just include the > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> configure.php file and then do your $_SESSION ['username'] > > > check to > > > =20 > > > =A0=A0 >=A0=A0see > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> if the user is logged in. then setup your variables and > > > include > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> html_header.php. Thats all you need to do now. The > > > configure.php > > > =20 > > > =A0=A0 >=A0=A0files > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> does everything for you. It sets all the variable constants, > > > =20 > > > =A0=A0 >=A0=A0includes > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> the header.php file, setups the MySQL session management file, > > > and > > > =20 > > > =A0=A0 >=A0=A0then > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> starts your session. All of this is done for you now in the > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> configure.php file. just start your pages like > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> this: > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> require('../includes/configure.php'); > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> if (!isset($_SESSION['username'])) > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> { > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> header("location: ../index.php"); > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> exit; > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> } > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> $pagetitle =3D "View Grades"; > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> $stylesheet =3D "student_basics.css"; > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> $navbarname =3D > > > =20 > > > =A0=A0 >=A0=A0"../student_navbar/student_navbar_print.inc"; > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> require('../includes/html_header.php'); > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> if you are doing that, it should work fine for you. also, you > > > need > > > =20 > > > =A0=A0 >=A0=A0to > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> make sure your database is set up correctly to handle the new > > > =20 > > > =A0=A0 >=A0=A0session > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> management table. import the etest_mysql_import.sql file into > > > your > > > =20 > > > =A0=A0 >=A0=A0db > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> to set it up properly. > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> about deleting teachers, no teacher should be deleted if they > > > have > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> associated tests, courses, etc... Really a teacher shouldnt > > > have to > > > =20 > > > =A0=A0 >=A0=A0be > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> deleted, since schools will probably want to keep records of > > > them > > > =20 > > > =A0=A0 >=A0=A0on > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> file for a long time, but we still should allow them to be > > > deleted > > > =20 > > > =A0=A0 >=A0=A0if > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> they truly do want to. > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> craig > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> -------Original Message------- > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > From: Jeremy Eden > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > Subject: > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> [Etest-devel] warnings and other questions > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > Sent: Dec 11 2003 12:47:18 > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > After updating this morning I started getting PHP > > > warnings on > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> every admin > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > page, see below: > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > Warning: session_start() Cannot send session cookie - > > > headers > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> already sent > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > by (...mysql_sessions.inc.php:636) in configure.php:110 > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > Warning: session_start() Cannot send session cache > > > limiter - > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> headers > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > already sent by (...mysql_sessions.inc.php:636) in > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> configure.php:110 > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > I am running Apache on WinXP. I also have noticed that > > > now > > > =20 > > > =A0=A0 >=A0=A0that > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> the > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > headers.php is in configure.php the redirects to the > > > login > > > =20 > > > =A0=A0 >=A0=A0page > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> don't work > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > anymore because the headers are already sent. These might > > > be > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> related > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > issues. > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > I am almost done with the admin teachers pages I just > > > have one > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> question > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > about deleting a teacher. Is a teacher allowed to be > > > deleted > > > =20 > > > =A0=A0 >=A0=A0if a > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> course > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > they are teaching already has had tests or has students > > > =20 > > > =A0=A0 >=A0=A0enrolled? > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> I would > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > say no, but I would like more input. In the meantime I am > > > =20 > > > =A0=A0 >=A0=A0starting > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> work on > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > the admin classes pages. > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > Jeremy > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > -------------------------------------------------- ----- > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > This SF.net email is sponsored by: IBM Linux Tutorials. > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > Become an expert in LINUX or just sharpen your skills. > > > Sign up > > > =20 > > > =A0=A0 >=A0=A0for > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> IBM's > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > Free Linux Tutorials. Learn everything from the bash > > > shell to > > > =20 > > > =A0=A0 >=A0=A0sys > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> admin. > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > Click now! > > > =20 > > > =A0=A0 >=A0=A0http://ads.osdn.com/? ad_id=3D1278&alloc_id=3D3371&op=3Dclick > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > [INVALID FOOTER] > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> -------Original Message------- > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> ---------------------------------------------------- --- > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> This SF.net email is sponsored by: IBM Linux Tutorials. > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> Become an expert in LINUX or just sharpen your skills. Sign up > > > for > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> IBM's Free Linux Tutorials. Learn everything from the bash > > > shell to > > > =20 > > > =A0=A0 >=A0=A0sys > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> admin. Click now! > > > =20 > > > =A0=A0 >=A0=A0http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> [INVALID FOOTER] > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> ---------------------------------------------------- --- > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> This SF.net email is sponsored by: IBM Linux Tutorials. > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> Become an expert in LINUX or just sharpen your skills. Sign up > > > for > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> IBM's Free Linux Tutorials. Learn everything from the bash > > > shell to > > > =20 > > > =A0=A0 >=A0=A0sys > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> admin. Click now! > > > =20 > > > =A0=A0 >=A0=A0http://ads.osdn.com/? ad_id=3D1278&alloc_id=3D3371&op=3Dclick > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> [INVALID FOOTER] > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> ---------------------------------------------------- --- > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> This SF.net email is sponsored by: IBM Linux Tutorials. > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> Become an expert in LINUX or just sharpen your skills. Sign up > > > for > > > =20 > > > =A0=A0 >=A0=A0IBM's > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> Free Linux Tutorials. Learn everything from the bash shell to > > > sys > > > =20 > > > =A0=A0 >=A0=A0admin. > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> Click now! > > > http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> [INVALID FOOTER] > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> ---------------------------------------------------- --- > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> This SF.net email is sponsored by: IBM Linux Tutorials. > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> Become an expert in LINUX or just sharpen your skills. Sign up > > > for > > > =20 > > > =A0=A0 >=A0=A0IBM's > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> Free Linux Tutorials. Learn everything from the bash shell to > > > sys > > > =20 > > > =A0=A0 >=A0=A0admin. > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> Click now! > > > =20 > > > =A0=A0 >=A0=A0http://ads.osdn.com/? ad_id=3D1278&alloc_id=3D3371&op=3Dclick > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0> [INVALID FOOTER] > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 >=A0=A0-------Original Message------- > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 > > > > =20 > > > =A0=A0 > > > > =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 > > > =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------- > > > > > > > --__--__-- > > _______________________________________________ > Etest-devel mailing list > Ete...@li... > https://lists.sourceforge.net/lists/listinfo/etest-devel > > > End of Etest-devel Digest > > > |
that kind of makes sense if that was your problem. if there are some <cr><lf> characters for newlines that are being output to the browser, if would affect the headers. all headers have to be sent before any output unless you buffer the output (which we dont). cpj -------Original Message------- > From: Jeremy Eden <ede...@ho...> > Subject:=20 Re: [Etest-devel] Re: Re: [Etest-devel] Re: Re: [Etest-devel] Re: [Etest-devel] warnings and other questions > Sent: Dec 12 2003 13:36:59 > > I think I figured out why it was giving me those warnings.=A0=A0There are blank > lines after the last '?>' in configure.php and mysql_sessions.inc.php.=A0=A0This > is somehow causing the headers to be sent because when I removed them I was > working again just fine and the sessions were working with no more warnings. > I don't know if this blank is being seen as html code.=A0=A0Does this make sense > to anyone? > =20 > ----- Original Message ----- > From: "Craig P Jolicoeur" > To: > Sent: Friday, December 12, 2003 12:35 PM > Subject: [Etest-devel] Re: Re: [Etest-devel] Re: Re: [Etest-devel] Re: > [Etest-devel] warnings and other questions > =20 > =20 > we arent calling the sess_init().=A0=A0we set up the varibles in configure.php > so we dont need to call sess_init().=A0=A0there will be not documentation on it > since it isnt an actually PHP builtin function but a user-defined function. > but, we arent calling it right now, we set up the variables ourselves in > configure.php that sess_init() would have set up. > =20 > =20 > =20 > =20 > =20 > =20 > =20 > =A0=A0 -------Original Message------- > =20 > =A0=A0 > From: Jeremy Eden > =20 > =A0=A0 > Subject: > =20 > Re: [Etest-devel] Re: Re: [Etest-devel] Re: [Etest-devel] warnings and other > questions > =20 > =A0=A0 > Sent: Dec 12 2003 11:03:39 > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0How does the sess_init function get called? I don't see any call to > it and > =20 > =A0=A0 >=A0=A0I don't see any mention of it in the PHP docs. > =20 > =A0=A0 >=A0=A0----- Original Message ----- > =20 > =A0=A0 >=A0=A0From: "Craig P Jolicoeur" > =20 > =A0=A0 >=A0=A0To: > =20 > =A0=A0 >=A0=A0Sent: Friday, December 12, 2003 10:45 AM > =20 > =A0=A0 >=A0=A0Subject: [Etest-devel] Re: Re: [Etest-devel] Re: [Etest-devel] > warnings and > =20 > =A0=A0 >=A0=A0other questions > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0why dont you just change your etest user password to 'protocol' in > your > =20 > =A0=A0 >=A0=A0database so you dont have to make that change everytime?? that is > the > =20 > =A0=A0 >=A0=A0correct password we are using now. > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0i dont know what to tell you. I have no more ideas. maybe some of > the > =20 > =A0=A0 >=A0=A0others can help you. Chris?? Brad?? any ideas. are you guys having > =20 > =A0=A0 >=A0=A0problems to or are you fine like me? > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0cpj > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0-------Original Message------- > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> From: Jeremy Eden > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> Subject: > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0Re: [Etest-devel] Re: [Etest-devel] warnings and other questions > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> Sent: Dec 12 2003 10:15:41 > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> I have done some more looking and the sessions are not working > on > =20 > =A0=A0 >=A0=A0my machine > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> at all. Is there something else that needs to be done with the > =20 > =A0=A0 >=A0=A0change from > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> having sessions stored to a directory vs. stored in the > database. > =20 > =A0=A0 >=A0=A0Something > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> like a PHP.INI change? I am stuck until the sessions work on > my > =20 > =A0=A0 >=A0=A0machine. I > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> can't even continue developing since I can't get past the > =20 > =A0=A0 >=A0=A0admin_home page. > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> The only change that I did, was to the configure.php file. I > =20 > =A0=A0 >=A0=A0changed the > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> DB_HOST to be 'localhost' instead of 'mysql' because the check > for > =20 > =A0=A0 >=A0=A0the > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> localhost IP doesn't work on my machine because my server has > a > =20 > =A0=A0 >=A0=A0static IP. > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> I also changed the DBPassword to 'etest' instead of 'protocol' > =20 > =A0=A0 >=A0=A0because that > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> was how I had setup the MySQL database before. It doesn't seem > like > =20 > =A0=A0 >=A0=A0either > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> of these two changes should affect sessions though. Any ideas? > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> ----- Original Message ----- > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> From: "Craig P Jolicoeur" > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> To: > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> Sent: Friday, December 12, 2003 7:39 AM > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> Subject: RE: [Etest-devel] Re: [Etest-devel] warnings and > other > =20 > =A0=A0 >=A0=A0questions > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> I am not sure what to tell you. The admin and student pages > work > =20 > =A0=A0 >=A0=A0fine > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> on my machine, and on the live sourceforge site. There are no > =20 > =A0=A0 >=A0=A0errors > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> being thrown like that. The sessions work fine. I am not sure > where > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> your problem is coming from. Is anyone else having the same > =20 > =A0=A0 >=A0=A0problem?? > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> My thoughts are that it is probably something on your machine > since > =20 > =A0=A0 >=A0=A0it > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> works fine for me and on the sf site. > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> You may still see some records in the etest_sessions table but > they > =20 > =A0=A0 >=A0=A0most > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> likely are expired. The will still be there if the user didn't > log > =20 > =A0=A0 >=A0=A0out > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> and just closed the browser or something like that. The reason > they > =20 > =A0=A0 >=A0=A0are > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> there is no garbage collection has been run on expired > sessions. I > =20 > =A0=A0 >=A0=A0will > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> have to implement something for that soon. > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> -----Original Message----- > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> From: ete...@li... > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> [mailto:ete...@li...] On Behalf Of > =20 > =A0=A0 >=A0=A0Jeremy > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> Eden > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> Sent: Friday, December 12, 2003 6:55 AM > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> To: ete...@li... > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> Subject: Re: [Etest-devel] Re: [Etest-devel] warnings and > other > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> questions > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> I am starting my pages like you have in the example and it is > still > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> giving those warnings and the redirect to the login page > doesn't > =20 > =A0=A0 >=A0=A0work > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> either because the headers are already sent. It happens also > with > =20 > =A0=A0 >=A0=A0the > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> student pages not just the admin pages. Before logging in a > =20 > =A0=A0 >=A0=A0student, go > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> to student_grade.php as an example and you should be > redirected to > =20 > =A0=A0 >=A0=A0login > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> the student but instead I get warnings saying the headers are > =20 > =A0=A0 >=A0=A0already > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> sent and that is all I see. I have the latest from CVS, my > database > =20 > =A0=A0 >=A0=A0is > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> setup with etest_mysql_import.sql and this is still happening. > I am > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> running the website on a WinXP Home, MySQL 4.0.16, PHP 4.3.3 > and > =20 > =A0=A0 >=A0=A0Apache > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> 1.3. > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> If no one is connected to the etest website (on my webserver) > =20 > =A0=A0 >=A0=A0should I > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> still see records in the etest_sessions table? > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> For the logout.php file the admin pages only set > 'adminusername' > =20 > =A0=A0 >=A0=A0and > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> 'Admin_Name' SESSION vars. > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> ----- Original Message ----- > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> From: "Craig P Jolicoeur" > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> To: > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> Sent: Thursday, December 11, 2003 2:04 PM > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> Subject: [Etest-devel] Re: [Etest-devel] warnings and other > =20 > =A0=A0 >=A0=A0questions > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> This is how you should start your pages now. just include the > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> configure.php file and then do your $_SESSION['username'] > check to > =20 > =A0=A0 >=A0=A0see > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> if the user is logged in. then setup your variables and > include > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> html_header.php. Thats all you need to do now. The > configure.php > =20 > =A0=A0 >=A0=A0files > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> does everything for you. It sets all the variable constants, > =20 > =A0=A0 >=A0=A0includes > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> the header.php file, setups the MySQL session management file, > and > =20 > =A0=A0 >=A0=A0then > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> starts your session. All of this is done for you now in the > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> configure.php file. just start your pages like > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> this: > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> require('../includes/configure.php'); > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> if (!isset($_SESSION['username'])) > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> { > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> header("location: ../index.php"); > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> exit; > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> } > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> $pagetitle =3D "View Grades"; > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> $stylesheet =3D "student_basics.css"; > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> $navbarname =3D > =20 > =A0=A0 >=A0=A0"../student_navbar/student_navbar_print.inc"; > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> require('../includes/html_header.php'); > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> if you are doing that, it should work fine for you. also, you > need > =20 > =A0=A0 >=A0=A0to > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> make sure your database is set up correctly to handle the new > =20 > =A0=A0 >=A0=A0session > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> management table. import the etest_mysql_import.sql file into > your > =20 > =A0=A0 >=A0=A0db > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> to set it up properly. > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> about deleting teachers, no teacher should be deleted if they > have > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> associated tests, courses, etc... Really a teacher shouldnt > have to > =20 > =A0=A0 >=A0=A0be > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> deleted, since schools will probably want to keep records of > them > =20 > =A0=A0 >=A0=A0on > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> file for a long time, but we still should allow them to be > deleted > =20 > =A0=A0 >=A0=A0if > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> they truly do want to. > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> craig > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> -------Original Message------- > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > From: Jeremy Eden > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > Subject: > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> [Etest-devel] warnings and other questions > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > Sent: Dec 11 2003 12:47:18 > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > After updating this morning I started getting PHP > warnings on > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> every admin > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > page, see below: > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > Warning: session_start() Cannot send session cookie - > headers > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> already sent > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > by (...mysql_sessions.inc.php:636) in configure.php:110 > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > Warning: session_start() Cannot send session cache > limiter - > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> headers > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > already sent by (...mysql_sessions.inc.php:636) in > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> configure.php:110 > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > I am running Apache on WinXP. I also have noticed that > now > =20 > =A0=A0 >=A0=A0that > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> the > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > headers.php is in configure.php the redirects to the > login > =20 > =A0=A0 >=A0=A0page > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> don't work > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > anymore because the headers are already sent. These might > be > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> related > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > issues. > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > I am almost done with the admin teachers pages I just > have one > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> question > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > about deleting a teacher. Is a teacher allowed to be > deleted > =20 > =A0=A0 >=A0=A0if a > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> course > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > they are teaching already has had tests or has students > =20 > =A0=A0 >=A0=A0enrolled? > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> I would > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > say no, but I would like more input. In the meantime I am > =20 > =A0=A0 >=A0=A0starting > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> work on > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > the admin classes pages. > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > Jeremy > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > ------------------------------------------------------- > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > This SF.net email is sponsored by: IBM Linux Tutorials. > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > Become an expert in LINUX or just sharpen your skills. > Sign up > =20 > =A0=A0 >=A0=A0for > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> IBM's > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > Free Linux Tutorials. Learn everything from the bash > shell to > =20 > =A0=A0 >=A0=A0sys > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> admin. > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > Click now! > =20 > =A0=A0 >=A0=A0http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > [INVALID FOOTER] > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> -------Original Message------- > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> ------------------------------------------------------- > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> This SF.net email is sponsored by: IBM Linux Tutorials. > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> Become an expert in LINUX or just sharpen your skills. Sign up > for > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> IBM's Free Linux Tutorials. Learn everything from the bash > shell to > =20 > =A0=A0 >=A0=A0sys > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> admin. Click now! > =20 > =A0=A0 >=A0=A0http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> [INVALID FOOTER] > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> ------------------------------------------------------- > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> This SF.net email is sponsored by: IBM Linux Tutorials. > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> Become an expert in LINUX or just sharpen your skills. Sign up > for > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> IBM's Free Linux Tutorials. Learn everything from the bash > shell to > =20 > =A0=A0 >=A0=A0sys > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> admin. Click now! > =20 > =A0=A0 >=A0=A0http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> [INVALID FOOTER] > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> ------------------------------------------------------- > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> This SF.net email is sponsored by: IBM Linux Tutorials. > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> Become an expert in LINUX or just sharpen your skills. Sign up > for > =20 > =A0=A0 >=A0=A0IBM's > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> Free Linux Tutorials. Learn everything from the bash shell to > sys > =20 > =A0=A0 >=A0=A0admin. > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> Click now! > http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> [INVALID FOOTER] > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> ------------------------------------------------------- > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> This SF.net email is sponsored by: IBM Linux Tutorials. > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> Become an expert in LINUX or just sharpen your skills. Sign up > for > =20 > =A0=A0 >=A0=A0IBM's > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> Free Linux Tutorials. Learn everything from the bash shell to > sys > =20 > =A0=A0 >=A0=A0admin. > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> Click now! > =20 > =A0=A0 >=A0=A0http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> [INVALID FOOTER] > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0-------Original Message------- > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 > > =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 > =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------- |
From: Chris W. <ch...@ba...> - 2003-12-12 18:57:34
|
=2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 12 December 2003 06:36 pm, Jeremy Eden wrote: > I think I figured out why it was giving me those warnings. There are bla= nk > lines after the last '?>' in configure.php and mysql_sessions.inc.php.=20 > This is somehow causing the headers to be sent because when I removed them > I was working again just fine and the sessions were working with no more > warnings. I don't know if this blank is being seen as html code. Does th= is > make sense to anyone? Yes, I should have looked for that but it never occured to me. I've had th= at=20 problem before. The blank line is sent as \n which is not rendered in HTML= =20 but is printed, nonetheless. So technically, there was information sent. = =20 Nice catch. =2D --=20 Chris Wanstrath ch...@ba... | www.badstatic.com =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/2ch7P8e1G1N5RJkRAjAnAJ9KE5FKvbIs1HmO/wovY9u6CR4gCQCdGHeO A3RC9icbxuV8uJatzBQ5ygg=3D =3DzMMs =2D----END PGP SIGNATURE----- |
From: Jeremy E. <ede...@ho...> - 2003-12-12 18:31:09
|
I think I figured out why it was giving me those warnings. There are blank lines after the last '?>' in configure.php and mysql_sessions.inc.php. This is somehow causing the headers to be sent because when I removed them I was working again just fine and the sessions were working with no more warnings. I don't know if this blank is being seen as html code. Does this make sense to anyone? ----- Original Message ----- From: "Craig P Jolicoeur" <cpj...@th...> To: <ete...@li...> Sent: Friday, December 12, 2003 12:35 PM Subject: [Etest-devel] Re: Re: [Etest-devel] Re: Re: [Etest-devel] Re: [Etest-devel] warnings and other questions we arent calling the sess_init(). we set up the varibles in configure.php so we dont need to call sess_init(). there will be not documentation on it since it isnt an actually PHP builtin function but a user-defined function. but, we arent calling it right now, we set up the variables ourselves in configure.php that sess_init() would have set up. -------Original Message------- > From: Jeremy Eden <ede...@ho...> > Subject: Re: [Etest-devel] Re: Re: [Etest-devel] Re: [Etest-devel] warnings and other questions > Sent: Dec 12 2003 11:03:39 > > 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" > To: > 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 > > > 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------- > > > > > > > ------------------------------------------------------- > 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------- |
From: <cpj...@th...> - 2003-12-12 17:33:42
|
we arent calling the sess_init(). we set up the varibles in configure.php so we dont need to call sess_init(). there will be not documentation on it since it isnt an actually PHP builtin function but a user-defined function. but, we arent calling it right now, we set up the variables ourselves in configure.php that sess_init() would have set up. -------Original Message------- > From: Jeremy Eden <ede...@ho...> > Subject:=20 Re: [Etest-devel] Re: Re: [Etest-devel] Re: [Etest-devel] warnings and other questions > Sent: Dec 12 2003 11:03:39 > > How does the sess_init function get called?=A0=A0I 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" > To: > Sent: Friday, December 12, 2003 10:45 AM > Subject: [Etest-devel] Re: Re: [Etest-devel] Re: [Etest-devel] warnings and > other questions > =20 > =20 > why dont you just change your etest user password to 'protocol' in your > database so you dont have to make that change everytime??=A0=A0that is the > correct password we are using now. > =20 > =20 > =20 > i dont know what to tell you.=A0=A0I have no more ideas.=A0=A0maybe some of the > others can help you.=A0=A0Chris?? Brad?? any ideas.=A0=A0are you guys having > problems to or are you fine like me? > =20 > =20 > =20 > cpj > =20 > =20 > =20 > =20 > =20 > =20 > =20 > =A0=A0 -------Original Message------- > =20 > =A0=A0 > From: Jeremy Eden > =20 > =A0=A0 > Subject: > =20 > Re: [Etest-devel] Re: [Etest-devel] warnings and other questions > =20 > =A0=A0 > Sent: Dec 12 2003 10:15:41 > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0I have done some more looking and the sessions are not working on > my machine > =20 > =A0=A0 >=A0=A0at all. Is there something else that needs to be done with the > change from > =20 > =A0=A0 >=A0=A0having sessions stored to a directory vs. stored in the database. > Something > =20 > =A0=A0 >=A0=A0like a PHP.INI change? I am stuck until the sessions work on my > machine. I > =20 > =A0=A0 >=A0=A0can't even continue developing since I can't get past the > admin_home page. > =20 > =A0=A0 >=A0=A0The only change that I did, was to the configure.php file. I > changed the > =20 > =A0=A0 >=A0=A0DB_HOST to be 'localhost' instead of 'mysql' because the check for > the > =20 > =A0=A0 >=A0=A0localhost IP doesn't work on my machine because my server has a > static IP. > =20 > =A0=A0 >=A0=A0I also changed the DBPassword to 'etest' instead of 'protocol' > because that > =20 > =A0=A0 >=A0=A0was how I had setup the MySQL database before. It doesn't seem like > either > =20 > =A0=A0 >=A0=A0of these two changes should affect sessions though. Any ideas? > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0----- Original Message ----- > =20 > =A0=A0 >=A0=A0From: "Craig P Jolicoeur" > =20 > =A0=A0 >=A0=A0To: > =20 > =A0=A0 >=A0=A0Sent: Friday, December 12, 2003 7:39 AM > =20 > =A0=A0 >=A0=A0Subject: RE: [Etest-devel] Re: [Etest-devel] warnings and other > questions > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0I am not sure what to tell you. The admin and student pages work > fine > =20 > =A0=A0 >=A0=A0on my machine, and on the live sourceforge site. There are no > errors > =20 > =A0=A0 >=A0=A0being thrown like that. The sessions work fine. I am not sure where > =20 > =A0=A0 >=A0=A0your problem is coming from. Is anyone else having the same > problem?? > =20 > =A0=A0 >=A0=A0My thoughts are that it is probably something on your machine since > it > =20 > =A0=A0 >=A0=A0works fine for me and on the sf site. > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0You may still see some records in the etest_sessions table but they > most > =20 > =A0=A0 >=A0=A0likely are expired. The will still be there if the user didn't log > out > =20 > =A0=A0 >=A0=A0and just closed the browser or something like that. The reason they > are > =20 > =A0=A0 >=A0=A0there is no garbage collection has been run on expired sessions. I > will > =20 > =A0=A0 >=A0=A0have to implement something for that soon. > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0-----Original Message----- > =20 > =A0=A0 >=A0=A0From: ete...@li... > =20 > =A0=A0 >=A0=A0[mailto:ete...@li...] On Behalf Of > Jeremy > =20 > =A0=A0 >=A0=A0Eden > =20 > =A0=A0 >=A0=A0Sent: Friday, December 12, 2003 6:55 AM > =20 > =A0=A0 >=A0=A0To: ete...@li... > =20 > =A0=A0 >=A0=A0Subject: Re: [Etest-devel] Re: [Etest-devel] warnings and other > =20 > =A0=A0 >=A0=A0questions > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0I am starting my pages like you have in the example and it is still > =20 > =A0=A0 >=A0=A0giving those warnings and the redirect to the login page doesn't > work > =20 > =A0=A0 >=A0=A0either because the headers are already sent. It happens also with > the > =20 > =A0=A0 >=A0=A0student pages not just the admin pages. Before logging in a > student, go > =20 > =A0=A0 >=A0=A0to student_grade.php as an example and you should be redirected to > login > =20 > =A0=A0 >=A0=A0the student but instead I get warnings saying the headers are > already > =20 > =A0=A0 >=A0=A0sent and that is all I see. I have the latest from CVS, my database > is > =20 > =A0=A0 >=A0=A0setup with etest_mysql_import.sql and this is still happening. I am > =20 > =A0=A0 >=A0=A0running the website on a WinXP Home, MySQL 4.0.16, PHP 4.3.3 and > Apache > =20 > =A0=A0 >=A0=A01.3. > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0If no one is connected to the etest website (on my webserver) > should I > =20 > =A0=A0 >=A0=A0still see records in the etest_sessions table? > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0For the logout.php file the admin pages only set 'adminusername' > and > =20 > =A0=A0 >=A0=A0'Admin_Name' SESSION vars. > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0----- Original Message ----- > =20 > =A0=A0 >=A0=A0From: "Craig P Jolicoeur" > =20 > =A0=A0 >=A0=A0To: > =20 > =A0=A0 >=A0=A0Sent: Thursday, December 11, 2003 2:04 PM > =20 > =A0=A0 >=A0=A0Subject: [Etest-devel] Re: [Etest-devel] warnings and other > questions > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0This is how you should start your pages now. just include the > =20 > =A0=A0 >=A0=A0configure.php file and then do your $_SESSION['username'] check to > see > =20 > =A0=A0 >=A0=A0if the user is logged in. then setup your variables and include > =20 > =A0=A0 >=A0=A0html_header.php. Thats all you need to do now. The configure.php > files > =20 > =A0=A0 >=A0=A0does everything for you. It sets all the variable constants, > includes > =20 > =A0=A0 >=A0=A0the header.php file, setups the MySQL session management file, and > then > =20 > =A0=A0 >=A0=A0starts your session. All of this is done for you now in the > =20 > =A0=A0 >=A0=A0configure.php file. just start your pages like > =20 > =A0=A0 >=A0=A0this: > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0require('../includes/configure.php'); > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0if (!isset($_SESSION['username'])) > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0{ > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0header("location: ../index.php"); > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0exit; > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0} > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0$pagetitle =3D "View Grades"; > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0$stylesheet =3D "student_basics.css"; > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0$navbarname =3D > "../student_navbar/student_navbar_print.inc"; > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0require('../includes/html_header.php'); > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0if you are doing that, it should work fine for you. also, you need > to > =20 > =A0=A0 >=A0=A0make sure your database is set up correctly to handle the new > session > =20 > =A0=A0 >=A0=A0management table. import the etest_mysql_import.sql file into your > db > =20 > =A0=A0 >=A0=A0to set it up properly. > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0about deleting teachers, no teacher should be deleted if they have > =20 > =A0=A0 >=A0=A0associated tests, courses, etc... Really a teacher shouldnt have to > be > =20 > =A0=A0 >=A0=A0deleted, since schools will probably want to keep records of them > on > =20 > =A0=A0 >=A0=A0file for a long time, but we still should allow them to be deleted > if > =20 > =A0=A0 >=A0=A0they truly do want to. > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0craig > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0-------Original Message------- > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> From: Jeremy Eden > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> Subject: > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0[Etest-devel] warnings and other questions > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> Sent: Dec 11 2003 12:47:18 > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> After updating this morning I started getting PHP warnings on > =20 > =A0=A0 >=A0=A0every admin > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> page, see below: > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> Warning: session_start() Cannot send session cookie - headers > =20 > =A0=A0 >=A0=A0already sent > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> by (...mysql_sessions.inc.php:636) in configure.php:110 > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> Warning: session_start() Cannot send session cache limiter - > =20 > =A0=A0 >=A0=A0headers > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> already sent by (...mysql_sessions.inc.php:636) in > =20 > =A0=A0 >=A0=A0configure.php:110 > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> I am running Apache on WinXP. I also have noticed that now > that > =20 > =A0=A0 >=A0=A0the > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> headers.php is in configure.php the redirects to the login > page > =20 > =A0=A0 >=A0=A0don't work > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> anymore because the headers are already sent. These might be > =20 > =A0=A0 >=A0=A0related > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> issues. > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> I am almost done with the admin teachers pages I just have one > =20 > =A0=A0 >=A0=A0question > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> about deleting a teacher. Is a teacher allowed to be deleted > if a > =20 > =A0=A0 >=A0=A0course > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> they are teaching already has had tests or has students > enrolled? > =20 > =A0=A0 >=A0=A0I would > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> say no, but I would like more input. In the meantime I am > starting > =20 > =A0=A0 >=A0=A0work on > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> the admin classes pages. > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> Jeremy > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> ------------------------------------------------------- > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> This SF.net email is sponsored by: IBM Linux Tutorials. > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> Become an expert in LINUX or just sharpen your skills. Sign up > for > =20 > =A0=A0 >=A0=A0IBM's > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> Free Linux Tutorials. Learn everything from the bash shell to > sys > =20 > =A0=A0 >=A0=A0admin. > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> Click now! > http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0> [INVALID FOOTER] > =20 > =A0=A0 > > =20 > =A0=A0 >=A0=A0-------Original Message------- > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 > > =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 > =20 > =A0=A0 >=A0=A0IBM's Free Linux Tutorials. Learn everything from the bash shell to > sys > =20 > =A0=A0 >=A0=A0admin. Click now! > http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick > =20 > =A0=A0 >=A0=A0[INVALID FOOTER] > =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 > =20 > =A0=A0 >=A0=A0IBM's Free Linux Tutorials. Learn everything from the bash shell to > sys > =20 > =A0=A0 >=A0=A0admin. Click now! > http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick > =20 > =A0=A0 >=A0=A0[INVALID FOOTER] > =20 > =A0=A0 > > =20 > =A0=A0 > > =20 > =A0=A0 > > =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=1278&alloc_id371&op=3Dick > =20 > =A0=A0 >=A0=A0[INVALID FOOTER] > =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 > =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------- |
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------- |
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------- |