22 lines
573 B
PHP
22 lines
573 B
PHP
<?php
|
|
|
|
namespace Config;
|
|
|
|
class SessionTimeout
|
|
{
|
|
// Session timeout in seconds (30 minutes)
|
|
public const TIMEOUT_DURATION = 1800;
|
|
|
|
// Show warning during the last 30 seconds before timeout.
|
|
public const WARNING_THRESHOLD = 1770;
|
|
|
|
// Server-side check interval (in seconds)
|
|
public const CHECK_INTERVAL = 30;
|
|
|
|
// Client-side session status check interval (in milliseconds)
|
|
public const CLIENT_CHECK_INTERVAL = 30000;
|
|
|
|
// Minimum interval between successful activity pings (in milliseconds)
|
|
public const CLIENT_PING_INTERVAL = 60000;
|
|
}
|