Cookie Session Timeout Detection Using Ranged Idle and Overdue Parameters

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing systems face challenges in detecting session status and managing cookie-based session timeouts, particularly with persistent cookies lacking expiration and in-memory cookies not expiring unless the browser is closed, leading to security threats and inefficient session management.

Innovation Solution

A method utilizing a ranged timeout approach based on three attributes: LastRefreshTime, RefreshInterval, and Overdue, to determine session status and handle cookie-based session expiration, where the LastRefreshTime represents the time of the last session refresh, RefreshInterval sets the idle period, and Overdue contributes to the cookie lifecycle, allowing for tunable parameters to balance accuracy and performance.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of operation

If persistent cookies are used with natural expiration time, then session management is simplified, but security is worsened because sessions cannot be forcibly terminated before expiration

Engineering Contradiction:
Improvesession managementVSAvoidsecurity
Core Design Contradiction:
Ease of operationVSReliability

Solution Approach 1:

The patent segments the session timeout mechanism into two independent components: persistent cookie expiration time and server-side idle timeout detection. The cookie's natural expiration is separated from the security-driven timeout requirement, allowing each to be optimized independently. The server monitors cookie age and can terminate sessions based on idle time regardless of cookie expiration status.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces a server-side intermediary mechanism that mediates between the persistent cookie's natural expiration and the security requirement for forced session termination. The server acts as an intermediary by monitoring cookie age and idle time, then enforcing timeout by clearing cookies and invalidating sessions independently of the cookie's natural expiration schedule.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Speed

If in-memory cookies are used without expiration, then session data is readily accessible, but security is worsened because sessions never expire unless the browser is closed

Engineering Contradiction:
Improvesession access speedVSAvoidsecurity
Core Design Contradiction:
SpeedVSReliability

Solution Approach 1:

The patent applies preliminary action by pre-setting an idle timeout threshold and continuously monitoring cookie age before security threats can materialize. The server proactively detects when cookies exceed the idle timeout threshold and terminates sessions before they can be exploited, rather than waiting for browser closure or cookie expiration.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements feedback by continuously monitoring cookie age and comparing it against the idle timeout threshold. This creates a closed-loop system where the server receives feedback about cookie freshness, processes it against security policies, and takes corrective action by clearing cookies and invalidating sessions when thresholds are exceeded.

Inventive Principle:
Principle #23Feedback

3Reliability

If idle timeout is enforced strictly, then security is improved, but usability is worsened because users must re-authenticate during normal browsing pauses

Engineering Contradiction:
ImprovesecurityVSAvoidusability
Core Design Contradiction:
ReliabilityVSEase of operation

Solution Approach 1:

The patent applies dynamics by making the timeout enforcement adaptive rather than rigid. The system dynamically evaluates each cookie based on its age and the idle timeout threshold, allowing legitimate user sessions to continue while terminating only those that exceed the threshold. This dynamic approach adjusts session validity in real-time based on actual idle time rather than applying static timeout rules.

Inventive Principle:
Principle #15Dynamics

4Ease of operation

If cookie expiration time is extended, then usability is improved, but security is worsened because sessions remain active longer and expose longer attack windows

Engineering Contradiction:
ImproveusabilityVSAvoidattack window
Core Design Contradiction:
Ease of operationVSObject-affected harmful factors

Solution Approach 1:

The patent segments the session lifetime into two independent dimensions: cookie expiration time (for usability) and idle timeout threshold (for security). This allows the cookie to remain valid longer for user convenience while the idle timeout mechanism independently terminates sessions that have been inactive beyond the security threshold, effectively separating the usability and security time parameters.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS10645177B2Cookie based session timeout detection and management
Publication Date: 2020.05.05 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US10645177B2 patent drawing
  • US10645177B2 patent drawing
  • US10645177B2 patent drawing

AI summary

A method, computer system, and a computer program product for detecting a session status based on a cookie associated with the session is provided. The present invention may include receiving an access request to a specified location associated with a server computer. The present invention may also include determining that the received access request has the cookie corresponding with the specified location. The present invention may also include receiving a last refresh time from the cookie. The present invention may then include determining the session status based on the retrieved last refresh time, a current request time, a refresh interval, and an overdue value.