Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 10:00 pm EST
Geeklog Forums
Logging In
Brett
Anonymous
I can login as administrator and moderator by using the moderator.php page. Although, this takes two attempts. The first attempt brings you back to the login page with the message that you have provided an invalid user or password.
I cannot login at all as a user. The right block displays the user name but it is obvious that the user is not logged in.
I have begun the process of looking for whitespace in the admin/user files but would like somebody to validate this. What files are involved in the login process? I have access to another site that is working so I may end up just copying those files across and trying to get it to work that way.
This is only frustrating in so much as I have no idea.....
Thanks!
I cannot login at all as a user. The right block displays the user name but it is obvious that the user is not logged in.
I have begun the process of looking for whitespace in the admin/user files but would like somebody to validate this. What files are involved in the login process? I have access to another site that is working so I may end up just copying those files across and trying to get it to work that way.
This is only frustrating in so much as I have no idea.....
Thanks!
6
8
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
One thing you could try is to switch on the verbose logging in system/lib-sessions.php:
$_SESS_VERBOSE = false;
Change it to = true and see if that brings any insights (logging will be done to error.log).
bye, Dirk
Text Formatted Code
// Turn this on if you want to see various debug messages from this library$_SESS_VERBOSE = false;
Change it to = true and see if that brings any insights (logging will be done to error.log).
bye, Dirk
5
10
Quote
Brett
Anonymous
Thanks Dirk!
I turned on the logging and have found that lib-session does try to set a cookie. However, even though there is a test for failure, the cookie is not set. In other words, I would have expected to see an error in my log if the script tried to set the cookie but couldn't.
So, I still do not see a cookie.
When lib-session goes back to see if the cookie was set, it is unable to find it, and subsequently confirms the fact that I am not logged in.
I have tried other web sites and cookies are being set which leads me to think that I have a problem, somewhere in geeklog.
So, now I am back to sifting through the forums to see if I have missed anything regarding cookies.
Brett
I turned on the logging and have found that lib-session does try to set a cookie. However, even though there is a test for failure, the cookie is not set. In other words, I would have expected to see an error in my log if the script tried to set the cookie but couldn't.
So, I still do not see a cookie.
When lib-session goes back to see if the cookie was set, it is unable to find it, and subsequently confirms the fact that I am not logged in.
I have tried other web sites and cookies are being set which leads me to think that I have a problem, somewhere in geeklog.
So, now I am back to sifting through the forums to see if I have missed anything regarding cookies.
Brett
6
5
Quote
Status: Banned
machinari
Forum User
Full Member
Registered: 03/22/04
Posts: 1512
do you have any redirects happening... from one domain to another or from an IP to a name, etc.?
5
7
Quote
Brett
Anonymous
There are no redirects as far as I know. It is strange that the setcookie function is wrapped in a true or false test which should trigger an error in the error log. That is not happening so it looks like the code is working as intended and setting the cookie.
When the script comes back to check the cookie (against the session ID) it is unable to find it (because it was not set) and that forces a no-login situation.
I have also written a small script to set a cookie in php.....and as a newbie, I am not even sure that the script is working. Regardless, this script does not set the cookie either which is making me think that I have some sort of server issue happening.
The script I wrote is:
setcookie("user", "brett", time()+604800); /* Expires in a week */
and I saved it as setcookie.php and ran it from my web home directory. Nothing was set....
When the script comes back to check the cookie (against the session ID) it is unable to find it (because it was not set) and that forces a no-login situation.
I have also written a small script to set a cookie in php.....and as a newbie, I am not even sure that the script is working. Regardless, this script does not set the cookie either which is making me think that I have some sort of server issue happening.
The script I wrote is:
setcookie("user", "brett", time()+604800); /* Expires in a week */
and I saved it as setcookie.php and ran it from my web home directory. Nothing was set....
2
7
Quote
Brett
Anonymous
Scuttle my example of setting a cookie! My brain is starting to hurt quite a lot. I can set a cookie using my script when I wrap it in a php block!
That proves that a cookie can be set from my server.
Back to the code....maybe it has something to do with the cookiedomain etc?
That proves that a cookie can be set from my server.
Back to the code....maybe it has something to do with the cookiedomain etc?
7
5
Quote
Bernd
Anonymous
Quote by Brett:maybe it has something to do with the cookiedomain etc?
I once had similar problems when using a second domain test.something.de additional to www.something.de (and in fact geeklog running on both domains on the same server);
to solve the strange behavior (I did not find out the real reason), I had to set
$_CONF['cookiedomain']='test.something.de';
and also once to delete all cookies.
I can also remember some problems where related to my browser-settings "handle all cookies as session-cookies";
I had to switch that off in konqueror.
Good luck,
Bernd.
5
6
Quote
All times are EST. The time is now 10:00 pm.
- 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