phpWebLog

find
story index | search | archive | submit story | downloads | stats | contact
Topics
  • General (915)
  • Announcements (20)
  • Development (521)
  • Mods & Hacks (33)


  • phpWebLog
  • Latest Release - 0.5.3 (BETA)
  • Latest Stable - 0.5.2
  • ChangeLog
  • TODO / Roadmap
  • BUGS

    CVS WEB

  • New XL fork 0.5.2
  • Unstable branch 0.5.3

  • For development discussions and for general support, join the phpWebLog mailing list

    phpWebLog needs active developers to help fix bugs. If you are interested, send me your SourceForge login information for CVS access.


    Last 5 Comments
  • How to make an index page (jason)
  • pwl hibernating or preparing for major release? (jason)
  • phpweblog 0.5.2 (and maybe 0.5.3) security problems (jason)
  • Help, tried 3 different verisons... (jason)
  • Heading Logo Images (ben)


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

    < Latest unstable | Relative URL's >

    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!!!!!!
    Post a Comment
    Name:
    Email:
    URL:
      Remember my information (uses cookies)
      I would rather be anonymous
    Comment:
    * Your email will not be made public.
    Save As:

    SourceForge
    SourceForge is providing us a mailing list , documentation and a CVS tree.

    SourceForge Logo


    PHP.net
  • New function list auto completion
  • PHP 4.3.4 released!
  • PHP 5.0.0 Beta 2 released
  • Forum PHP in Paris, November 26 & 27th
  • Monthly PHP Magazine in French launched!
  • ApacheCon 2003, the Global Hub for All Things Apache
  • php|cruise: The World's First Ever PHP-only Cruise
  • PHP Usage Survey Results
  • PHP Manual CHM Edition - 12th build
  • International PHP Conference 2003 program online

  • PHPBuilder
  • Zend Studio 3.0
  • GIS Mapping with PHP
  • On User-Defined Timezones in PHP
  • Dreamweaver MX 2004
  • Using PEAR's HTML_Table Class
  • An introduction to the ADOdb class library, Part 2
  • An introduction to the ADOdb class library for PHP
  • Manually Expiring Web Pages
  • Regression Testing With JMeter
  • Advanced Image Editing Under the GD Library

  • phpWebLog: A PHP News and Content Management System
    Copyright (C) 2000-2002, Jason Hines / Eye Integrated Communications