Jump to content

Redirection not is consistent


langenf

Recommended Posts

 

hi,

im making an app that needs users to be logged in inorder to use it.

The file structure of the app is like this.

root

/app

//includes

includes is in tha app folder which is in the root.

includes folder has a file that login_check and moves the redirects the to app/index.php when the user is

not logged in like this header("Location:../index.php?mesagge=$mesagge"). It works as expected within

the application. Say for example when the user clicks the logout button or when user enters a wrong password trying to login

. But when i try to access a file in the app folder say app/show_articles.php without logging in, it redirects the user to

root folder  index.php. Can you please say what is wrong here?

Link to comment
https://forums.phpfreaks.com/topic/140262-redirection-not-is-consistent/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.