Neos Session Clear Manually


(adil ansari) #1

Need to remove the session clear manually.

Which method or API needs to be the call.?


(Soren Malling) #2

The documentation covers that nicely

https://flowframework.readthedocs.io/en/stable/TheDefinitiveGuide/PartIII/Caching.html

Initiate a instance of the CacheManager for a specific cache and flush that. You can even flushByTag if you want that


(adil ansari) #3

Thanks for the update.

But can you guide me to clear session of particular user manually by calling a method?


(Soren Malling) #4

Can you describe the usecase further?
Do you want to logout a user, that is not yourself?


(adil ansari) #5

The same user which he/she logged into system.
For some specific condition we need to make used session clear first because we had our authentication provider too.

so once click on that button(specific condition),His Neos session should be clear and logout for our authentication Provider(That we can do but make sure user neos session should be destroy)