Skip to main content
MTeator
Participant
November 18, 2024
Question

Turn off "Session rotated successfully." logging

  • November 18, 2024
  • 1 reply
  • 367 views

Is there any way to turn off the "Session rotated sucessfully." logging when calling SessionRotate()? It really fills up the logs.

    This topic has been closed for replies.

    1 reply

    BKBK
    Community Expert
    Community Expert
    November 18, 2024

    There is probably a more important question besides. I think you should instead assess whether you are implementing SessionRotate correctly.

     

    The function SessionRotate invalidates the current session and creates a new session. migrating session data from the old session to the new. This implies that its use would be required only sparingly.

     

    The fact that "Session rotated sucessfully" fills up the logs suggests to me that the function SessionRotate may be called too often. I would therefore suggest that you first investigate whether that is so.

    MTeator
    MTeatorAuthor
    Participant
    November 19, 2024

    It's being called once when someone logs in.

    Community Expert
    November 20, 2024

    How frequently do users log in, in your application?

     

    That aside, you should probably just filter your log to hide these. It's a good idea to keep them - they're definitely worth logging - but you should be able to view the log without having to see them each time.

     

    Dave Watts, Eidolon LLC