Welcome to Geeklog, Anonymous Friday, November 29 2024 @ 10:45 pm EST
Geeklog Forums
Is there a reason?
jlinder
The Apache HTTP Server Project is proud to announce the third public release of Apache 2.0. Apache 2.0 has been running on the Apache.org website since December of 2000 and has proven to be very reliable. (KEEP IN MIND THIS IS 1.5 years now!)
PHP and Geeklog Dev. Team has IGNORED the Apache2 issues. Also, I honestly believe that the answers we get here about "PHP is not to be run on a production site with Apache2" are ignoring the fact that maybe, just maybe, Geeklog is using a nonstandard method of either reading or writing the cookies and sending out the correct information to the browser. How many of us 'geeks' dare to say that we do not run production sites even though they are only hobby sites!? They are PRODUCTION to US!
Also, I would like to remind the general Geeklog public-at-large that there is a HUGE security flaw in Geeklog with respect to requiring register_globals = On! http://www.php.net/ has issued this formally!
Is it just me or is the normally "outstanding" Geeklog development team ignoring most of these issues?
Can we start a conversation about some of this?Maybe, especially, changing Geeklog to use session handling via URLs OR COOKIES, dependant upon the wishes of the Geeklog administrator(s). Actually, session handling using URLs would eliminate the issues we are all facing when running under Apache2!!!
Dirk
Dirk
MLimburg
Friends help you move. Real friends help you move bodies.
Anonymous
Anonymous
jlinder
I think there are going to be enough incompatibilities introduced in the 2.0 version of Geeklog with all of the blocks, feeds, plug-ins changes that we are going to burn SOMEone regardless of whether or not we look at Apache2 NOW or LATER.
There is a history of PHP-4 and Apache2 in the last few months directly affecting other PHP-cookie-based software and those issues directly relating to how and where cookies are used, read and written. Those issues have been repaired in other software packages by rewriting the cookie sections. For information see: http:// forums.mercuryboard.com/index.php?a=topic&t=697
So, As i have said, a sessions (URL-based) system instead of all these DOZEN cookies on the browser would make sense as an alternative...think? Maybe a sessions (sessions.auto_start cookie) method is better.
What I WANTED was discussion, not dead-ends...that is all!
Dirk, to you I send my heartfelt thanks. You have really sent comments to nearly all of my posts and it makes me think someone *is* listening...but I wanted opinions about more than just APACHE2. I wanted opinions about Geeklog development and fixes PRIOR to the Geeklog 2 releases.
Thanks alot , btw.
Jann
handelaar
jlinder
Salamander
jlinder
As a follow-up to the suggestion that I trouble-shoot this issue (re:MLimburg): Has anyone noticed that upon login to the user.php script, the following occurs (if you want to trace it, set & #36;_SESS_VERBOSE = true; in your lib-sessions.php file and it will dump the following data upon attempting to sign in).
This is how my trace looks:
USER CLICKS SUBMIT ON LOGIN BOX:
Tue Jul 23 22:44:03 2002 - *************inside new_session******** *********
Tue Jul 23 22:44:03 2002 - Args to new_session: userid = 13, remote_ip = 63.65.xyz.abc, lifespan = 7200, md5_based = 0
Tue Jul 23 22:44:03 2002 - Assigned the following session id: 1212562229
Tue Jul 23 22:44:03 2002 - *************leaving SESS_newSession** ***************
Tue Jul 23 22:44:03 2002 - ***Inside SESS_sessionCheck***
Tue Jul 23 22:44:03 2002 - session cookie not found from lib- common.php
Tue Jul 23 22:44:03 2002 - ***Leaving SESS_sessionCheck***
I am tracing this methodically as follows:
You click login.
The system checks for a session cookie in lib-common.php
The system does not find a session cookie on the browser, either session or permanent based.
The system exits this routine having gotten nowhere with identifying your cookie.
***Now, the interesting part:
THEN the system takes you to SESS_newsession which attempts to setup a session in the database.
It has your id, ip, assigns a lifespan,etc
Now, it clears any session you may have had from the database AND any session which timed out, inserts your session.
Then it sets a new cookie and sets the global $_USER to your & #36;userdata (which holds your id, username, etc).
Now, in the past, we know we have had problems with this global. According to the geeklog file lib-sessions.php (at the top):
// LOAD USER DATA. NOTE: I'm not sure why I have to set $_USER like this because
// it's suppose to be a global variable. I tried setting $_USER from within
// SESS_sessionCheck() and it doesn't work.
$_USER = SESS_sessionCheck();
Yet they are setting the $_USER variable from within this SESS_sessioncheck routine upon login anyway. (like the script tells us < b>NOT TO!)
WHY? is this the trouble we are all having who cannot log in?
Here is another interesting thought: the welcome_msg in header.thtml gives us anoher clue: the variable substitution that does not happen. < br> $_USER['username'] (in $msg) is not being substituted in lib- common (my line 343). (as read from $_USER hash/array)
YET our usernames are appearing in the upper right corner as being logged in. (as read from mysql)
NOW, Please keep in mind that these things happen ONE AFTER ANOTHER in lib-sessions.php and therefore can only be a of a failure for the $_USER global to be set correctly due to the fact that it is being set INSIDE the function and not outside as previously stated in the script as being required.
Any thoughts? Dirk? Anyone?
Keep in mind in am an experienced programmer--10 years, however I just jumped into PHP a few months ago. I may be totally off- base, but i CAN read code
handelaar
MLimburg
Friends help you move. Real friends help you move bodies.
MLimburg
Friends help you move. Real friends help you move bodies.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content