Photon Networking: Time Limit

Hello. I have a question. How can I create a Time Limit for each server. For example if a player create a room, the time limit is 10 Minutes and after 10 minutes the time is over and the room/server closes. How can I do this?

The simple solution is to do this client side:
When a player creates a room, add a room-property “start time” with a current UTC timestamp.
Every of your clients will check this property and leave the room when that time passed. Additionally, the MasterClient could close the room so no one can join again.
The room is cleaned up when everybody left.

Aside from this, the server’s Room class could also do the timing and then kick everyone from the room (send an event with the meaning “you must leave, time is up”).