How to manage cache in iphone with codes
<p>My Application requires a username and password fields.At the first login the validation working perfect.But the second time onwards there is no validation in the password field.It is automatically collected from the cache.
   I am using the below codes for requesting.</p>

<pre><code>NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:                             [NSURL URLWithString:xmlUrl]                                     cachePolicy:NSURLRequestUseProtocolCachePolicy
                    timeoutInterval:30.0];
</code></pre>

<p>[theRequest setHTTPMethod:@"GET"];
NSURLResponse* response = nil;</p>

<pre><code>[NSURLConnection sendSynchronousRequest:theRequest
                                       returningResponse:&amp;response error:&amp;error];
NSDictionary* dict=[theRequest allHTTPHeaderFields];
</code></pre>

<p>Thanks in advance</p>
