Skip to main content
MTeator
Participant
Nov 18, 2024 5:20 PM UTC
Question

Turn off "Session rotated successfully." logging

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

    This topic is closed to new replies. Start a new post to keep the conversation going.

    4 replies

    BKBK
    Community Expert
    Community Expert
    Nov 18, 2024 5:42 PM UTC

    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.

    Translate
    MTeator
    MTeatorAuthor
    Participant
    Nov 19, 2024 9:08 PM UTC

    It's being called once when someone logs in.

    Translate
    Community Expert
    Nov 20, 2024 3:40 PM UTC

    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.

     

    Translate
    Dave Watts, Eidolon LLC