Skip to content

Risky global $SESSION usage #2

Description

@volodymyrdovhan

Hello,
Plugin stores data in $_SESSION instead of using Moodle's Cache API with MODE_SESSION for better security and scalability.

Documentation:

Code excerpts:

  • File: lib.php
53:     // Use session cache to avoid DB query on every page load.
54:     // Cache is invalidated when the user visits the profile edit page.
55:     if (!empty($SESSION->local_forceprofile_complete)) {
56:         return;
57:     }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions