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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:49:54+00:00 2026-05-13T15:49:54+00:00

I have this web application which does the following as standard to all websites

  • 0

I have this web application which does the following as standard to all websites

  • Users browse to any page on the website
  • They click on login link on header from any page
  • Visit login page and then login and get directed to their logged in page
  • IF user then hits back button they get to login page and that redirects to home (because they are already logged in).

How do I change at javascript or php level for the following

  • Users browse to any page on the website
  • They click on login link on header from any page
  • Visit login page and then login and get directed to their logged in page
  • IF user then hits back button they will get to the page they visited just before the login page was seen.

Thanks

  • 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-13T15:49:54+00:00Added an answer on May 13, 2026 at 3:49 pm

    There are a few ways to do this, the easiest:
    1. Change the way your login process script redirects, if you change the location header then the web browser will ignore that page when the user goes back. In php it’s as easy as

    header("Location: http://www.google.com");
    

    or
    2.Use An AJAX login system, so rather than going from home->loginpage->profilepage you could have an in-page popup box that allows the user to login inside the homepage.

    Either way, as an ease of use feature, you should probably send the user back to the homepage after login, and then there is no need to use the back button – on the new home page simply have “Welcome Bob, Profile Links Merged With Home Page, etc” added when a user is detected.

    Hope that helps 🙂

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

Sidebar

Related Questions

Okay this is a real headscratcher. I have an application which calls a web
Using the following steps: (I have checked this similar post , which does not
I have a C# windows application which does the following: 1) the main form
I have this web application that has grown to an unmanageable mess. I want
I have a web application deployed in an internet hosting provider. This web application
So I have this c# application that needs to ping my web server thats
This is an odd thing I've just run into. I have a web application
I need a little help on this subject. I have a Web application written
I have web application which we deployed in a production . We have separate
I have a problem with a little .Net web application which uses the Amazon

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.