Change the maxage for a specific session

Sorry some problems in merging, I hope this is correct