If you have access to the php.ini file, you can change it there.
Setting the session-cookie lifetime to whatever you want.
you can also change stuff like which domain it should set to, and for which path it should be valid.
Else. Maybe you can have a .htaccess file that overrides the default php.ini file?