Login into admin then go to configuration --> sessions then change as necassary.

If you cannot login directly edit the sql.