I think that before calling session_name() you need to run the method for configuring the session handler, which could contain a custom session name