add callback function of just before output.
change session_save_path, and set session.gc_maxlifetime = cookie expire
time.