Warning: Cannot use a scalar value as an array in /home/admin/public_html/forum/include/fm.class.php on line 757

Warning: Invalid argument supplied for foreach() in /home/admin/public_html/forum/include/fm.class.php on line 770
Форумы портала PHP.SU :: Версия для печати :: сессия htacess
Форумы портала PHP.SU » Серверное администрирование » Apache и другие веб-серверы » сессия htacess

Страниц (1): [1]
 

1. Tigorrr - 13 Ноября, 2008 - 13:58:49 - перейти к сообщению
Люди срочно , подскажите как сделать так чтбы сессия апача (через htacess) закрывалась автоматически через 10 минут? Читал мнгго чего но нигде не написано чтбоы именно апачевскую сессию закрывать. Спасибо
2. Champion - 13 Ноября, 2008 - 14:06:54 - перейти к сообщению
php-value max_execution_time = 600

синтаксис не помню
3. Tigorrr - 13 Ноября, 2008 - 16:06:43 - перейти к сообщению
спасибо огромное!! если поможет то будет просто супер!!!!!!
4. valenok - 13 Ноября, 2008 - 19:26:01 - перейти к сообщению
чего ???

Цитата:
15.6 Authentication Credentials and Idle Clients

Existing HTTP clients and user agents typically retain authentication information indefinitely. HTTP/1.1. does not provide a method for a server to direct clients to discard these cached credentials. This is a significant defect that requires further extensions to HTTP. Circumstances under which credential caching can interfere with the application's security model include but are not limited to:

- Clients which have been idle for an extended period following
which the server might wish to cause the client to reprompt the
user for credentials.

- Applications which include a session termination indication
(such as a `logout' or `commit' button on a page) after which
the server side of the application `knows' that there is no
further reason for the client to retain the credentials.

This is currently under separate study. There are a number of work- arounds to parts of this problem, and we encourage the use of password protection in screen savers, idle time-outs, and other methods which mitigate the security problems inherent in this problem. In particular, user agents which cache credentials are encouraged to provide a readily accessible mechanism for discarding cached credentials under user control.


Коротко здесь говорится что это невозможно по спецификации http 1.1 и
возможно будет доступно в 1.2.
А пока единственное что вы можете попробовать так это
<?php header( 'Location: http://loggedout:blank@the.current.url' ); ?>
(Добавление)
http://www[dot]w3[dot]org/Protocols/rfc2[dot][dot][dot]c15[dot]html#sec15[dot]6
5. Tigorrr - 14 Ноября, 2008 - 12:25:39 - перейти к сообщению
Champion пишет:
php-value max_execution_time = 600

синтаксис не помню


Это же директива на выполнение скрипта, по времени.
6. Champion - 14 Ноября, 2008 - 15:25:19 - перейти к сообщению
Tigorrr пишет:
Champion пишет:
php-value max_execution_time = 600
синтаксис не помню

Это же директива на выполнение скрипта, по времени.


Tigorrr пишет:
чтбы сессия апача (через htacess) закрывалась автоматически через 10 минут?

(Добавление)
я че-то сначала так понял, что вы хотели отрубать пользователей, которые по 10 минут страницу грузят
7. Джур - 16 Ноября, 2008 - 20:37:50 - перейти к сообщению
тогда уж не апачевскую а РНР-шную.

методами PHP вот так


через .htaccess
CODE (text):
скопировать код в буфер обмена
  1. php_value session.gc_maxlifetime 10800
  2. php_value session.cookie_lifetime 10800

 

Powered by ExBB FM 1.0 RC1