Added custom session handler implementation.