hi again,

i've run into a problem, in my theme i've created a new login/logout
button in the menu which does work very nice for me, except that if
i'm using this plugin i can't logout since my custom logout button
won't destroy the cookie from the plugin. so my question is if someone
could be kind and help me correct my code to properly destroy the
cookie when i press the logout button.

here is the relevant code from my menu-bar

   <ul class="menu">
    <li><a href="<?php Site::out_url( 'habari' ); ?>" title="<?php
_e('News'); ?>"><?php echo $home_tab; ?></a></li>
        <li><a href="/forum" title="Forum">Forum</a></li>
<?php
if ( $user ) { ?>
    <li class="admintab"><a href="<?php Site::out_url( 'admin' ); ?>"
title="<?php _e('Admin Area'); ?>"><?php _e('Admin'); ?></a></li>
        <li class="logouttab"><a href="<?php Site::out_url( 'habari' ); ?>/
user/logout" title="<?php _e('Logout'); ?>"><?php _e('Logout'); ?></
a></li>
        <?php
}
else { ?>
    <li class="admintab"><a href="<?php Site::out_url( 'admin' ); ?>"
title="<?php _e('Login'); ?>"><?php _e('Login'); ?></a></li>
<?php } ?>
   </ul>

On 9 Sep, 20:26, Arthus Erea <[EMAIL PROTECTED]> wrote:
> Agreed. I often work from school and don't want my session persisting  
> there.
>
> I think Heilemann actually already designed such a checkbox. It's just  
> commented out in system/admin/login.php – should be easy to grab that  
> and embed it in the plugin.
>
> On Sep 9, 2008, at 1:21 PM, eternal243 wrote:
>
>
>
> > Well, i've installed it and it seems to work, but is it possible to
> > add a checkbox on the login-screen, when you login and there is no
> > cookie available, that would only store the login information if you
> > check the checkbox? This would be useful in the case of using a public
> > computer like at the library. Mostly since it's easy to forget to
> > logout and then anyone would be able to publish new posts on your
> > blog.
>
> > On 9 Sep, 18:59, "Scott Merrill" <[EMAIL PROTECTED]> wrote:
> >> Hi everyone.
>
> >> I've written a new plugin, Persistence of Memory, that allows you to
> >> stay logged into your blog for up to one month:
> >>  http://soullesssoftware.com/persistence-of-memory
>
> >> It stores a cookie on your PC, so it should follow you regardless of
> >> the IP address assigned to your PC.  A few folks have been testing  
> >> it,
> >> and all the major problems seem to have been resolved, so I'm making
> >> it available to the wider Habari community.
>
> >> As always, let me know if you have any trouble.
>
> >> Cheers,
> >> Scott
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/habari-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to