Skip to content

Guest page does not automatically refresh #6065

@TheSin-

Description

@TheSin-

Describe the bug

When using a guest account with auto login, the preview page does not refresh (I'm pretty sure this is broken even when logging in as well based on the code)

In the user prefs I have it set to 60 seconds, which in the output on the page sets refreshMSeconds to 60000, but global_sessions.php resets it to 9999999 right here https://github.com/Cacti/cacti/blob/develop/include/global_session.php#L104

if I comment that out and set it to 60 everything works perfectly again.

To Reproduce

Steps to reproduce the behavior:

  1. got to /cacti/graph_view.php

Expected behavior

if the user performs is set to 60, it should refresh at 60s, it does not.

Screenshots

not required

Desktop (please complete the following information)

confirmed on all combos or majors OS and browsers

Smartphone (please complete the following information)

did not attempt mobile as we do not use mobile here

Additional context

not sure when this changed but it was working in bullseye, broken in bookworm which is 1.2.24+ds1-1+deb12u4 and I can see still the code in current git causing the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourconfirmedBug is confirm by dev teamresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions