Now it's works for me! It's very useful, thanks!
But It has problem with session naming in some case
For example, 95% of my directory (projects) has same name "site". And this directory placed in directory with true name of the project. Like "Project-1\site", "Project-2\site", "MySite\site" etc. But session name has last folder name: "site", "site", "site" etc