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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:34:37+00:00 2026-05-26T23:34:37+00:00

My questions is about redirection from PHP . I know that we can redirect

  • 0

My questions is about redirection from PHP. I know that we can redirect from a php page to another page by nust using

header("Location: ".$redirectURL);

In my case, one php file receives a XMLHttp POST request, done using javascript in front-end. It manipulates some data in it, and now sets a cookie and then i want to redirect to another page. All pages are in same domain only.

I want to move to the other page, from PHP. Can i do this? Any methods for these?

edit:

Situation is like this, from a login page, i will post the username &password to one php page, where its validated. From validation its understood if the user belongs to a server in some other region(We use a regional divisioning), i will redirect him to that servers login page, but with a cookie set. So that login page understands he’s already logged in, and open his homepage.

Thanks for Help 🙂

  • 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-26T23:34:38+00:00Added an answer on May 26, 2026 at 11:34 pm

    client : ajax client which do request
    serverphp : php file which executing ajax request

    1. Redirect client to another page

    serverphp return an address client listener redirect client’s browser

    2. Redirect serverphp to another page

    You can do a request to first.php then redirect it to second.php and ajax will get answer from second.php

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

Sidebar

Related Questions

There are several other questions about this topic that I have gone through, but
I have some questions about importing data from Excel/CSV File into SQL Server. Let
A quick questions about sessions, I have a session with the following code <?php
I've seen some questions about e.g redirecting to the calling page but the general
I have one question about redirecting in ASP.NET. I know how to redirect with
Two questions about <list-index...> : Is it necessary that values of column given in
In the shell you can do redirection, > < , etc., but how about
I need to ask something about htaccess redirection. I know there are lots of
Questions about Python's subprocess.Popen() objects (Please assume a scenario where the number of bytes
There were many questions about C++ template classes which contain static member variables, as

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.