anchor.diff:                     server_random = undefined,
                      exportable = undefined},
               sequence_number => 0,server_verify_data => undefined,max_fragment_length => undefined}}.
  +
  +
  +
  +test_max_session_limit(ClientOpts, ServerOpts, ClientNode, ServerNode, HostName) ->
  +     Server0 =
  +	ssl_test_lib:start_server([{node, ServerNode}, {port, 0},
  +				   {from, self()},
  +				   {mfa, {ssl_test_lib, no_result, []}},
  +				   {tcp_options, [{active, false}]},
  +				   {options, ServerOpts}]),
  +    Port0 = ssl_test_lib:inet_port(Server0),
  +    
  +    Client0 = ssl_test_lib:start_client([{node, ClientNode},
  +                                         {port, Port0}, {host, HostName},
  +                                         {mfa, {ssl_test_lib, session_id, []}},
  +                                         {from, self()},  {options, [{reuse_sessions, save} | ClientOpts]}]),
  +    SID0 = receive
  +          {Client0, Id0} ->
  +                  Id0
  +          end,
  +       
  +   
  +    Server0 ! listen,
  +    
  +    Client1 = ssl_test_lib:start_client([{node, ClientNode},
  +                                         {port, Port0}, {host, HostName},
  +                                         {mfa, {ssl_test_lib, session_id, []}},
  +                                         {from, self()},  {options, [{reuse_sessions, save} | ClientOpts]}]),    
  +       
  +    SID1 = receive
  +               {Client1, Id1} ->
  +                   Id1 
  +           end,
  +       
  +    false = SID0 == SID1,
  +    
  +    
  +    Server0 ! listen,
  +    
  +    Client2 = ssl_test_lib:start_client([{node, ClientNode},
  +                                         {port, Port0}, {host, HostName},
  +                                         {mfa, {ssl_test_lib, session_id, []}},
  +                                         {from, self()},  {options, [{reuse_sessions, save}| ClientOpts]}]),  
  +
  +    
  +    SID2 = receive
  +               {Client2, Id2} ->
  +                   Id2 
  +           end,
  +
  +    Server0 ! listen,
  +    
  +    Client3 = ssl_test_lib:start_client([{node, ClientNode},
  +                                         {port, Port0}, {host, HostName},
  +                                         {mfa, {ssl_test_lib, session_id, []}},
  +                                         {from, self()},  {options, [{reuse_session, SID2}| ClientOpts]}]),   
  +    
  +    receive
  +        {Client3, SID2} ->
  +            ok;
  +        Other  ->
  +            ct:fail({{expected, SID2}, {got,Other}})
  +    end.
  
positive.code:         ]).
  
  %% Test cases
  -export([reuse_session/0,
           reuse_session/1,
           reuse_session_expired/0,
           reuse_session_expired/1,
  
negative.code: 		      {from, self()},  {options, [{reuse_sessions, save} | ClientOpts]}]),
      SessionInfo =
  	receive
  	    {Server, Info} -> 
  		Info
  	end,
  
  