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.
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.
Copy link to clipboard
Copied
It's being called once when someone logs in.
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.
Copy link to clipboard
Copied