session works on multiple sub domains if main setttings allow to
refactor a bit