Branch: Tag:

2014-11-29

2014-11-29 16:37:19 by Martin Nilsson <nilsson@opera.com>

OO more.

858:      mapping(string:Session) session_cache = ([]);    - int session_number; /* Incremented for each session, and used when -  * constructing the session id */ -  +    // Remove sessions older than @[session_lifetime] from the session cache.   void forget_old_sessions()   {
895:    id = random(32);    } while( session_cache[id] );    -  Session s = Session(); -  s->identity = id; -  return s; +  return Session(id);   }      //! Add a session to the cache (if caching is enabled).