Cookie facility improved, session::userid deprecated