Can´t Logout Gallery and Block It Again

I wan't to create a login with guest password. At this moment everything ok, but I wan't to do possible to make a logout and the gallery be blocked again. What is happening is that when I enter a Gallery it still available always.

Comments

  • use the user_logout plugin and add printUserLogout() to you album.php file

    however... i am having some trouble with this, since the logout doesnt seem to delete the cookie (= doesn't work)
  • found it:

    in user_logout.php

    add this at line 56

    $cookiesSet = array_keys($_COOKIE);
    for ($x=0;$x<count($cookiesSet);$x++) setcookie($cookiesSet[$x],"",time()-1);
  • This will, of course, clear out all cookies, not just the login ones.
  • Is working but only in IE, I can't do it work in FireFox, but thanks.
    If there is a way to not delete all the cookies, please give me the code.
    But by know i'm glad... :D
  • sbillard, yes it will clear all cookies *for that domain*, which seems like what is needed.

    without doing this, it simply doesn't do anything. (perhaps the cookie name changed?)

    (im using ff3, opera9.5, ubuntu)
  • gwmbox Member
    So is there a way to get it to clear the login cookie only for this?
  • Are you running the current release of Zenphoto and using the user_logout plugin? That does exactly clear these login cookies.
Sign In or Register to comment.