added support for sessions or cookies...right now it is configured for sessions...added logout capability