Topic: Intermittent problem logging in and logging out

Hi.  Here is my PunBB configuration running at http://www.kathykendall.net/punbb

PunBB version PunBB 1.2.17 - Check for upgrade
© Copyright 2002, 2003, 2004, 2005 Rickard Andersson
Server load 0.00 0.02 0.02 (2 users online)
Environment Operating system: FreeBSD
PHP: 5.2.4 - Show info
Accelerator: N/A
Database PostgreSQL 8.2.5 on i386-unknown-freebsd6.2, compiled by GCC gcc (GCC) 3.4.6 [FreeBSD] 20060305

About half to 3/4 of the time when I log in, it says that I successfully logged in, redirects me to the main page, then it doesnt show that I am logged in.  Most of the time, if I close the browser and relaunch, it will show me logged in.  The same thing happens when I try to log out.  I have tried this with admin and non-admin accounts, makes no difference.  Then there are times it works fine.  I cannot seem to locate a pattern to why it works sometimes, and not others.  I have tried this using IE and FireFox, and I have tried those browsers on 3 different workstations, all running Windows Vista, and I have experienced the same problem on all combinations of workstations and browsers.

Any ideas?

}Dan

Re: Intermittent problem logging in and logging out

Probably has something to do with your redirect between www and non-www.

Re: Intermittent problem logging in and logging out

I dont have any redirects.  Everything is using www.kathykendall.net

Re: Intermittent problem logging in and logging out

Look at your address bar when you go there. I'm directed to http://kathykendall.net/punbb/.

Re: Intermittent problem logging in and logging out

Hmmm......never noticed that before.  Question I have is where is the redirect happening?  I have the o_base_url set to http://www.kathykendall.net/punbb, I did a find/grep for kathykendall.net and found nothing.  Any ideas?

Re: Intermittent problem logging in and logging out

Very interesting.  When you go to the site, the redirect happens just as you say.  If after the redirect happens, if you go up to the address line and put www in front, it stays.  The redirect doesnt happen again, and as you predicted, everything works like a champ.  Now I just have to figure out where the initial redirect is happening.

Re: Intermittent problem logging in and logging out

Ok, I figured it out.  In Apaches httpd.conf file, where I have the VirtualHost setup for kathykendall.net, I had set the ServerName to kathykendall.net, and set ServerAlias to www.kathykendall.net.  I have been using setups like that on all my web sites and have never seen anything redirect like that before until now.  Whodda thunk it.  smile  Anyways, I swapped the ServerName and ServerAlias around and it is working. 

I am not sure how PunBB is seeing the difference and redirecting, but that is the only place on the site that does redirect like that, so I am sure it is something that PunBB is doing, just fyi.