Session issue
-
I have a issue in the ‘start session’ within my PHP code.
I have added a page in my WordPress website and it seems that there is an issue with start session. The link to the page affected is (linked below)
The PHP code works very well in my localhost but when I add the PHP code to my WordPress website (link above) then the page doesn’t load properly!
This code should redirect me to login.php if I am not logged in .
-
I have a issue in the ‘start session’ within my PHP code.
I have added a page in my WordPress website and it seems that there is an issue with start session. The link to the page affected is (linked below)
The PHP code works very well in my localhost but when I add the PHP code to my WordPress website (link above) then the page doesn’t load properly!
This code should redirect me to login.php if I am not logged in .
<?php
session_start();
if(!isset($_SESSION[‘login_id’]))
header(‘location:login.php’);
include(‘./header.php’);
// include(‘./auth.php’);
?> -
-
Hi there – It looks like you have a WordPress site that’s hosted outside of WordPress.com.
You’ve reached the forums for WordPress.com support. This means our support tools aren’t designed to directly support your needs. We’ll need to direct you to the WordPress community support forums (at WordPress.org) where you can get more relevant help. https://wordpress.org/support/forum/how-to-and-troubleshooting/
If you’re curious about the difference between WordPress.com and WordPress.org, here’s more on that: https://wordpress.com/support/com-vs-org/
Moving forward, for all other questions about your WordPress site, you can seek help here: https://wordpress.org/support/forum/
Good luck!
- The topic ‘Session issue’ is closed to new replies.