Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Thursday, May 23 2013 @ 12:07 PM EDT


 Forum Index > Support > Installation Support New Topic Post Reply
 Logging In
   
Anonymous: Brett
 05/31/05 01:36PM (Read 912 times)  



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!

 
 Quote
Dirk
 05/31/05 05:10PM  
AAAAA
Admin

Status: offline


Registered: 01/12/02
Posts: 13027
One thing you could try is to switch on the verbose logging in system/lib-sessions.php:
PHP 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

 
Profile Email Website
 Quote
Anonymous: Brett
 06/01/05 10:11AM  



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

 
 Quote
machinari
 06/01/05 12:42PM  
+++++
Full Member

Status: offline


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.?

 
Profile Email
 Quote
Anonymous: Brett
 06/01/05 02:49PM  



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....


 
 Quote
Anonymous: Brett
 06/01/05 02:55PM  



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?

 
 Quote
Anonymous: Bernd
 06/03/05 10:26AM  



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.

 
 Quote
Content generated in: 0.92 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
Filtered HTML Allowed 
Censored Content