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

Turn off "Session rotated successfully." logging

New Here ,
Nov 18, 2024 Nov 18, 2024

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

359
Translate
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

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
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

It's being called once when someone logs in.

Translate
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

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
Translate
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
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?

Translate
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