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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:52:41+00:00 2026-06-04T17:52:41+00:00

I have a weird problem. Which, I was using $_SESSION to show login errors

  • 0

I have a weird problem. Which, I was using $_SESSION to show login errors to user. It was working with no problem. Few days ago, I have changed my host from a Plesk host to a cPanel host that runs safe_mod off. Somehow my $_SESSIONs at login page doesn’t work. I test $_SESSION on index page and it works OK and it show nothing wrong with working of $_SESSION function. Both page included same session starter page.

Also nothing works on login page when my functions file included. (sessions, post items, classes, functions etc. nothing.) But everything works on index page even if functions file included. What’s happening here? What can be the reason?

PS: I am using UserCake for members system. My server doesn’t allow me to turn PHP errors at htaccess level and nothing seems with

error_reporting(E_ALL);
ini_set('display_errors', '1');

Also nothing seems relevant at my error logs.

Edit: We succeeded to show errors using

ini_set('error_reporting', 8191); 
ini_set('display_startup_errors', 1); 
ini_set('display_errors', 1);

thanks to @J A but no errors seems.

  • 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-06-04T17:52:43+00:00Added an answer on June 4, 2026 at 5:52 pm

    Either one of the following solutions.

    1. Put session_start(); on top of the pages you are accessing $_SESSION from.

    2. Check your php.ini, you can set session autostart to 1 if you don’t want to follow the other solution.

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

Sidebar

Related Questions

I have a weird problem. I'm using pscp.exe from within a C# program (with
I am facing a weird problem. I have got a file called in which
I am having a weird problem .. I have written a CUDA code which
I know how to use RVM, but now I have a weird problem, which
I have a weird problem with my code as the compiler generates code which
I have a very weird problem. This ONLY affects Firefox on Mac, using the
I have weird problem. I'm using Eclipse for writing J2EE (java, jsf, javascript) application
I have a very weird problem. Have an application using Hibernate and spring.I have
I've started using SVN before a few weeks. I am facing a weird problem
I am facing a weird problem. I have a UITextField and an NSString which

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.