if user tap the logout button need to show the login screen when he start the app again
<p>My iphone app have login screen, and logout button in the app,
requierment was to when user click the logout button,next time he start the application he should get the login screen</p>

<p>solution sould work on 3g/3gs/iphone 4</p>

<p>following are the approaches i found.,
01.calling [[UIApplication sharedApplication] terminateWithSuccess]; and
[[UIApplication sharedApplication] terminate];</p>

<p>02.when user logged to app,write a value to plist and when user click the logout remove the plist value,use this value to propt the user for login screen again or is there anyother approaches available</p>

<p>Regards,
sam.</p>
