Member
Member
agostinhofr   2008-10-21, 11:29
#1

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.

Member
Member
moos   2008-10-22, 13:39
#2

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)

Member
Member
moos   2008-10-22, 15:10
#3

found it:

in user_logout.php

add this at line 56

$cookiesSet = array_keys($_COOKIE);
for ($x=0;$x

Member
Member
sbillard   2008-10-22, 16:44
#4

This will, of course, clear out all cookies, not just the login ones.

Member
Member
agostinhofr   2008-10-22, 16:53
#5

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

Member
Member
moos   2008-10-29, 11:42
#6

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)

Member
Member
gwmbox   2009-07-06, 04:05
#7

So is there a way to get it to clear the login cookie only for this?

Member
Member
sbillard   2009-07-06, 20:32
#8

Are you running the current release of Zenphoto and using the user_logout plugin? That does exactly clear these login cookies.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.