Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 958137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:48:55+00:00 2026-05-16T00:48:55+00:00

I have an application that uses OAuth whose logic is something like this: If

  • 0

I have an application that uses OAuth whose logic is something like this:
If there is a request token for the user that is valid stored, loads a UITabBarController with four views.
Else, brings the user to the login screen.

I realized today that if I am logged into my app, log out, and switch to another user, the data from the first user is displayed until I hit refresh. Also, the tab that was last viewed by the previous user is displayed (which is pretty strange for an application user’s point of view).

I thought about removing the TabBarController and creating a new one, but I realized I was not sure how to do that, considering that I set everything up through Interface Builder. (Also, I’m not even sure if that is the best way.)

What is a good way for handling log out of A -> log into B? Also, if you need more information, I’ll be very happy to elaborate.

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T00:48:56+00:00Added an answer on May 16, 2026 at 12:48 am

    I do it as follows

    Login

    1. Load and display the login screen
    2. Load the root view controller in background
    3. Insert the root view controller behind the login screen
    4. Remove/release the login screen after successful login

    Logout

    1. Load the login screen and place it on bottom of the view stack (behind the root view)
    2. Remove/release the root view controller (login becomes visible)
    3. … start over at 2) in Login

    If you store user specific data in the documents directory, store it in subdirectories
    with the user name or id as directory name. One directory for each user.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 523k
  • Answers 523k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Extending Richard Cook's answer. Here's the ant task to run… May 16, 2026 at 9:41 pm
  • Editorial Team
    Editorial Team added an answer Yes using one http binding. You can also check this:… May 16, 2026 at 9:41 pm
  • Editorial Team
    Editorial Team added an answer PEAR::DB has been superceded by MDB2, and had not been… May 16, 2026 at 9:41 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have an application that uses a DLL to make API calls. Is there
I have web application that uses JasperReports for PDF report generation. I'd like to
I am writing a Python/Django web application that uses OAuth (for the TwitterAPI, not
Are there any recommended resources for implementing a custom membership provider that uses oAuth?
I have an application that integrates with Facebook using Oauth 2. I can authorize
I have an application that uses an external jar. I used eclipse and it
I have a application that uses plugins. I load the plugins in another appdomain.
I have an application that uses sockets to connect to my server. A lot
I have a C# application that uses several web services which were added to
I have an application (exe) that uses some strongly named dll's. If I understand

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.