working in session and static server