Link to home
Start Free TrialLog in
Avatar of tankergoblin
tankergoblin

asked on

error page: this webpage has redirect loop

Hi,

i have code below :

Hi,

i have try this

$studentId = $_SESSION["studentId"];

if(!isset($studentID))
{
header("location:login.php");
}

i received an error as below:

This webpage has a redirect loop

how to solve this..
ASKER CERTIFIED SOLUTION
Avatar of Sudaraka Wijesinghe
Sudaraka Wijesinghe
Flag of Sri Lanka image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tankergoblin
tankergoblin

ASKER

say now i want to go to login page is above possible?

should i put the code on login page?
i used your code and i still get

This webpage has a redirect loop -- error message
When you get the error, where do you have this code?
Problem was not solved