Added bug.
Adapted code for latest session and cookie handling changes in atlatl.