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
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |