<?php session_save_path('/home/example.com/sessions'); ini_set('session.gc_probability', 1); //add this last line //Otherwise, old files in '/home/example.com/sessions' will never get removed!Check the line below on your php.ini file: session.save_path = "/tmp"