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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:09:05+00:00 2026-05-22T17:09:05+00:00

session_start(); //If user was logged in then returns true, //if user was NOT logged

  • 0
session_start();
//If user was logged in then returns true,
//if user was NOT logged in then it returns false;
//except on ie8 this returns ALWAYS false, and never true
var_dump($this->user->is_logged_in());

$_POST['username'] = 'test';//username = test
$_POST['password'] = 'test';//pass     = test
var_dump($this->user->login());//bool //true/
var_dump($this->user->is_logged_in());//bool true
die();

This is what I have on my script to debug my script and find out where the problem is…
The problem is that on “ie8 only” The sessions do not seem to stay and always keep deleting on every request.

I should also mention b4 this code there is ob_start()

This is driving me mad 🙁 help anyone?
if more info needed I will add them.

  • 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-22T17:09:06+00:00Added an answer on May 22, 2026 at 5:09 pm

    Some things to check:

    Are you sending a proper P3P header on your responses?

    IE seems to have a problem with cookies on Internet Zone sites if you’re not sending P3P headers. You should send something like this with each response:

    P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM"
    

    See here also: http://msdn.microsoft.com/en-us/library/ms537343(v=VS.85).aspx

    Does it work with another compatibility mode?

    I’ve had cookie issues with IE8 unless its X-UA-Compatible header is set to IE=EmulateIE7, but your mileage may vary.

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

Sidebar

Related Questions

Currently I have been testing variables on $_SESSION, and if isset() returns false then
I get this: Warning: session_start(): Cannot send session cookie - headers already sent by
I have a header.html which start with session_start();. Then the following code, $_SESSION['cart'][$sw_id] is
I have a PHP application where I set $_SESSION['user']=logged once a user is authenticated.
I'm trying to figure out why this happens with Chrome, but not FF or
Our user authentication system makes use of cookies and $_SESSION variables to determine logged-in
for some reason no matter what I do, this is always returning a valid
HI everyone 1. As user enter username and password in sign-in-form.php then values are
I have a webpage that requires login. Once a user has logged in I
If I write the following code: session_start(); $_SESSION['user_id']='daniel'; the variable stays fine as long

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.