The debugger variable $sessiondir is set to the directory in which the debugger saves session files:
$HOME/.idb/sessions/ in command line mode.
$PWD/workspace/sessions/ in GUI mode, where $PWD is the working directory in which the GUI was started.
You cannot change this directory.
print $sessiondir
Copyright © 2001-2011, Intel Corporation. All rights reserved.