Kavita Tipnis wrote:Ok,
If I understand it right, if your user is not authenticated(logged in ) then you want to redirect him to page 1
So First, check if a user session exists or not
Second, if the user session exists , then check the incoming request, if it is not from page1 then redirect to page1
If user session does not exists , then redirect user to page1
Hope this helps
Kavita Tipnis wrote:
Kavita Tipnis wrote:Ok,
If I understand it right, if your user is not authenticated(logged in ) then you want to redirect him to page 1
So First, check if a user session exists or not
Second, if the user session exists , then check the incoming request, if it is not from page1 then redirect to page1
If user session does not exists , then redirect user to page1
Hope this helps
I modified the code assuming you enter the attribute 'user' in the session after the user enters the username on Page1
When it is used for evil, then watch out! When it is used for good, then things are much nicer. Like this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|