|
|
Lost in the shuffle
Posted under General by Susan Long on Wednesday November 01 2000 @ 04:27PM EST
|
I was afraid my reply to Jason question about the admin logout problem would get lost in the shuffle so I decided to repost my reply here:
This might get lengthy but I think it bears mentioning. I have come to some conclusions that still in themselves don't make sense.
I have a script that adds virtual domains to the server. On two of these virtual domains, this is where the admin part won't let me log out. Like say http://www.domain.com and http://www.anotherdomain.com
However, if I bypass the script (which does the same thing as if I added it by hand anyway) and I add it by hand, which is what I have to do if I setup something like http://somenamehere.domain.com and http://anotherdomain.domain.com
I have to edit the httpd.conf file by hand since this is not the same kind of virutal domain. These ALL work. I tested it again today and if I do it this way, it works.
This tells me it must have something to do with virutal hosts on the server. I just don't know WHAT yet. I even looked at the vdomainadd script that I have and it does the SAME thing I do when I add it by hand with the exception of a symbolic link to yet another httpd.conf in a vhosts dir. All of the dir that are made by the script have the domain extension on them also like http://www.domain.com would be /home/domain.com instead of just /home/domain
Anyway, the next thing I'm going to try is to setup a domain by hand without the script and see what happens. The script also sets up the domain for qmail and makes it possible to setup a domain with mail in about 30 seconds.
Sorry to get so lengthy, but I know of a couple others around me using your script and one uses the same domain setup script although on a different OS. So far, they have no problems that I'm aware of.
Yikes! I didn't answer your question! I checked my cookies and it shows that I have some for at least two of the directories that are set to expire like a week after they were set. Deleting them by hand didn't solve the problem either. Netscape won't let me login at all and IE won't let me out once I'm in. Only with the trouble causing directories though, like I said, a few that I have setup work fine.
|
|
|
|
jason writes on Wednesday November 01 2000 @ 04:27PM EST: [ reply | parent ]
I hope this helps at least solve the mystery as to why the cookies aren't working, but I do not know if this will help in fixing it.
phpWebLog send its cookies as:
setcookie($name,$value,0,"/index.html","",0);
The domain is not being sent. According to the PHP manual, setcookie can also optionally send the domain, which in your case may be necessary.
The two places where admin logs in and out are:
admin/auth.inc.php: line 29 sends login cookie
admin/logout.php: line 26 send logout cookie
A guess would be its something in here.
Hope this helps Susan, if not, keep me posted and I will do what I can.
|
|
Susan Long writes on Thursday November 02 2000 @ 10:18AM EST: [ reply | parent ]
I don't want to sound dumb, but I am still a greenhorn here ;-) BUT, what do I do with what you told me?
|
|
|
jason writes on Thursday November 02 2000 @ 12:59PM EST: [ reply | parent ]
In admin/logout.php
Try changing:
setcookie(md5($name),"",0,"/index.html","",0);
to
setcookie(md5($name),"",0,"/index.html","yourdomain.com",0);
|
|
|
Susan Long writes on Thursday November 02 2000 @ 03:06PM EST: [ reply | parent ]
That seemed to do the trick!! Thanks!!!!!!
|
|
|
|
|