[pmwiki-users] Event booking lists...

Patrick R. Michaud pmichaud at pobox.com
Tue Apr 3 13:06:54 CDT 2007


On Tue, Apr 03, 2007 at 08:48:52AM -0700, Nicholas Buttle wrote:
> Can I get AuthUser to remember logins?  So say a user
> logs in once in the morning can it remember that login
> for the rest of the day?  Even after browser has been
> closed?  

1.  Create a directory called "work/" where PHP can hold its sessions.  
    (If you use the standard session directory, then any other PHP 
    scripts running on the same host may clear out the session files.)

2.  Give the work/ directory 777 permissions so the webserver can write
    to it.

3.  In your local/config.php, prior to authuser.php being loaded, add
    the following:

        ini_set('session.gc_maxlifetime', 86400);
        session_save_path("work");
        session_set_cookie_params(86400);

This will cause sessions to remain open for one day (86400 seconds)
after someone successfully logs in, or until they log out.  The
sessions should remain active even if the browser is closed and
then subsequently re-opened.

All of this is totally independent of ZAP or any other recipes.

Pm
        



More information about the pmwiki-users mailing list