It would be useful for PHP CLI when session doesn't work.