• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Turn off "Session rotated successfully." logging

New Here ,
Nov 18, 2024 Nov 18, 2024

Copy link to clipboard

Copied

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

Views

112

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 18, 2024 Nov 18, 2024

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 19, 2024 Nov 19, 2024

Copy link to clipboard

Copied

It's being called once when someone logs in.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 20, 2024 Nov 20, 2024

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 20, 2024 Nov 20, 2024

Copy link to clipboard

Copied

LATEST
quote

It's being called once when someone logs in.


By @MTeator

 

Hi @MTeator ,

I wish to clarify something. If sessionRotate is called just once, then I don't understand what you mean when you say "it really fills up the logs". Do you mean that there are many users?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation