Setting key in sid_collision? method

Putting back setex in 'set_session' and added setnx in 'sid_collision?' when 'get' returns nil,  it means that it is available