Auto logout Problem

Links for php scripts

Moderators: macek, egami, gesf

kiwi
New php-forum User
New php-forum User
Posts: 124
Joined: Sun Feb 29, 2004 6:26 am
Contact:

Auto logout Problem

Postby kiwi » Wed Aug 11, 2004 4:58 pm

<?php

/* set the cache limiter to 'private' */

session_cache_limiter('private');
$cache_limiter = session_cache_limiter();

/* set the cache expire to 30 minutes */
session_cache_expire(30);
$cache_expire = session_cache_expire();

/* start the session */

session_start();

echo "The cache limiter is now set to $cache_limiter<br />";
echo "The cached session pages expire after $cache_expire minutes";
?>


i got the code above, how to use it. I put it in a main file, after a certain time, i set to one minute, after a minute, i can't auto logout, should i put it in all the files that i have to make it work??? help me please? thanks

Return to “PHP Scripts”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest