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 6100455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:23:18+00:00 2026-05-23T13:23:18+00:00

I have the follow problem. This is the situation i’ve got when user login

  • 0

I have the follow problem. This is the situation i’ve got when user login the application and register History.
The workflow is:
1. There is a checking if user is already login- meaning if user object is in the session
if not then login form is loaded and a new token is added (History.newItem(“login”))
if yes then the user is free to enter the main form in the application and a token is added (History.newItem(“main”)).
After user enter pass and user successfully then a new token is added (History.newItem(main)) and enter the application main form.

And here is the problem, after main form is displayed and user decide to click “Back” in the browser then “login” token is taken from the stack and login form is loaded. But let assume user decide to click on “Forward ” browser button and then “main” token is taken and main form displayed. I don’t like this scenario and want to do : After “back” button to appear a Dialog box and ask “Leave application?” with “Yes” and “No” button but i can’t identify when i have regular login or “back/forward” login in order to do some action.

Any advice or approaches.. probably my design is wrong..

Any way to distinguish back or forward action?

  • 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-23T13:23:18+00:00Added an answer on May 23, 2026 at 1:23 pm

    If you want to avoid all this then don’t put “login” in history.

    In this case you might want to implement login panel as modal dialog. So when user (or application) requests login, a modal dialog is shown with login entry field. When done with login, just close the dialog and reload the current page (to reflect the changes affected by login).

    You can use ‘History.fireCurrentHistoryState()’ to force reloading the current page. This calls your history handlers, but it does not affect the history (no token is added to history stack).

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

Sidebar

Related Questions

My given problem is follow: I have an object with x columns and every
Avast there fellow programmers! I have the following problem: I have two rectangles overlapping
I have a follow-up question to this one . I created a new form,
I have a follow up question to this question . Is it possible to
I have a follow up question to this one . Now that I have
I have an application that uses UIDatePicker & I am facing problem as described
I have faced this problem when working with ORACLE 10g. I read the answers
My situation as follow: I'm building up an invoice system, I have almost everything
Our situation is as follows, but I'm curious about this problem in any situation.
Okay, so I have this LINQ to SQL situation. I have a DataContext object

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.