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

  • Home
  • SEARCH
  • 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 7976593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:56:54+00:00 2026-06-04T08:56:54+00:00

I have a facebook application which is session based. i am having bad behaviour

  • 0

I have a facebook application which is session based. i am having bad behaviour as follows: if the user is using the app then logs out from facebook and some other user logs in to facebook and logs in the app they see the user data who just logged out.

Essentially I d like to clear the session every time visitor hits the first page.

I have a HomeController which extends BaseController in base controller i check if the user has a session.

where should i put Session.clear() in order to prevent user to access old user session?

on

HomeController{
   [authorize for facebook]
   indexAction{
      redirect to home action
   }

}

my concern is that when indexaction is invoked Before that base controller will be invoked and i will get a infinite loop.

Note: I m using a UserCookie which i store the user id and expiration of the cookie within.

any ideas?

  • 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-06-04T08:56:55+00:00Added an answer on June 4, 2026 at 8:56 am

    It looks like you want to check if Facebook user ID matches data in session state. The easiest would be to put something like Session["FBID"]=facebookId and than check on every request if current facebookId matches `Session[“FBID”], if not – clear session (irrespective of current location).

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

Sidebar

Related Questions

I have made an application which allows a user to login using their facebook
I have a script in my facebook application which will provide the user with
I have made an application which uses latest ios facebook sdk to connect. I
I have a Facebook desktop application and am using the Graph API . I
I have a simple Desktop Facebook application that allows the user to retrieve some
I have integrated Facebook connect in my iphone application. when user clicks on a
I am trying to make an application which integrates facebook and twitter. I have
I have created a facebook application using FaceBook ToolKit for .Net, What I am
Does anyone have experience writing a Facebook application using GWT with GAE? I'm new
I have this facebook application which adds a custom tab to fan pages. You

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.