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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:06:55+00:00 2026-05-27T08:06:55+00:00

I have the classical Symphony flash message implementation: $_SESSION[‘flash’] = This is a flash

  • 0

I have the classical Symphony flash message implementation:

$_SESSION['flash'] = "This is a flash message";
header('location: index.php');

It works fine on two different servers but has a strange behavior on a third one, a hosted server, LAMP stack, of which configuration I’m not aware about in detail.
On the third server the script execution brings up first a warning – that the headers have already been sent … (but I didn’t output anything, on the other servers it works) – then if I trigger again the redirecting event, a hyperlink, it brings me into the index.php file with the message rendered. I know how to make it “portable”, by using JavaScript to redirect, but I wonder what is the cause of this behavior. I suspect a server configuration for a PHP or Apache module.
Thanks for your hand!

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

    Javascript is not the portable solution,
    but the least portable solution.

    The unknown output could be caused by some white-spaces like BOM.
    Or you can take a look on headers_sent

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

Sidebar

Related Questions

I have an ecommerce website that works in a classical way: people sign up,
I have the classical table with expandable and collapsible records that if expanded show
I have a web system which has a classical parent-children menu saved in a
I wonder how many of you have implemented one of computer science's classical algorithms
We have a classic ASP application that simply works and we have been loathe
I have this classic ASP site which has been working fine until we updated
I have a classical scenario of a website and payment gateway integration, where the
I have a very classical class which contains buttons and label, etc... : @interface
I have a classical virtual inheritance diamond: class A { protected: A(const char *x)
I have the classical structure for tests, I have a test suite of different

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.