coder81's avatar

Auth logout during AJAX upload

I am coding a simple AJAX upload form, and sometimes during the tests, i found myself logged out after the upload, of reading the ajax response log. My log file is clean. What I can do to know what is the reason of this?

0 likes
7 replies
jlrdw's avatar

What version are you on, if version 5.2 make sure you have the latest updates as there was middleware changes and also make sure you are properly passing the csrf token.

ChristopherSFSD's avatar

Could it be the session driver? I've had issues with AJAX and file-based sessions causing logout for me as well. Switching to database sessions solved it for me.

jlrdw's avatar

@ChristopherRaymond that may be the case but in reality sessions shouldn't be dropping I would seriously either create an issue or see if there isn't one already on this. I have used Ajax with version 4.2 in the past and never had a problem like this.
At least Google search and pursue this further before you change things around.
I wonder if it's only happening during an Ajax call or other random times.
If searching the Forum for answers not as many pages show now so seriously Google it first.

coder81's avatar

I set up a series of event listeners to log what is the uri requested that generate logout, I hope to find some information about it.

jlrdw's avatar

Today there was another post about someone having sexual problems in version 5.2 someone needs to create an issue here too many session problems going on.

1 like

Please or to participate in this conversation.