[pmwiki-users] Stay logged in on a specific machine...
DaveG
pmwiki at solidgone.com
Thu Feb 19 12:51:30 CST 2009
I think I have a solution to this -- I've not had to login for a while
now :)
I've added this to my config.php (actually to farmconfig.php, but
config.php for non-farm setups), and so far it's worked:
$EnableSessionPasswords = 1;
# Unique session name for each wiki -- if no farms you could use
commented line
# session_name('MY_SESSION123');
session_name(str_replace('.','',$_SERVER['HTTP_HOST']));
ini_set('session.cookie_lifetime', 99999999);
ini_set('session.gc_maxlifetime', 99999999);
Note, setting gc_maxlifetime *may* have consequences that are not
beneficial. However, I've not seen that when I've used this code.
~ ~ Dave
Michael Shanley wrote:
> I dislike having to sign in every single time I open my browser, and I
> know that a long while ago, I was able to preserve my auth level with
> PmWiki.
>
> I'm looking for a solution that will -- probably using cookies -- that
> my auth level will be remembered until I specifically log out.
>
> Thanks!
>
> Mike
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
More information about the pmwiki-users
mailing list