Question: I already have this line for Linux box.

```
find . -type f -name '*.txt' -exec ls -l {} \;

```

It's getting all the TXT files in directory. But what I can't do and what I want to do is, to read all the .txt files on subfolder in one directory.

For example : ParentTxtFolder --> ChildTxtFolder --> Txtfolder1, Txtfolder2, Txtfolder3. Per one Txtfolder it contains .txt files.

So what I want is, to scan Txtfolder1 and count .txtfiles.

If this output is possible, Expected output :

```
Txtfolder1 - 14
Txtfolder2 - 10
Txtfolder3 - 18

```

I'm really stuck on this one. Thanks in advance!

Answer: 
In your shiro.ini set a web session manager and set that into your security manager. See that helps.

```
sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager
securityManager.sessionManager = $sessionManager

```
I had the same problem and I solved it simple by cleaning the cache and cookies from local-host (or whatever is the server address) at the browser.
None of the suggestions above worked for me.