Is PHP Support, URL Validation…?

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

amitsaini54
New php-forum User
New php-forum User
Posts: 1
Joined: Thu Sep 05, 2013 7:06 am

Is PHP Support, URL Validation…?

Postby amitsaini54 » Thu Sep 05, 2013 8:06 am

Is PHP Support, URL Validation…?
For Example: We have a portal build in PHP .which have two type of register user
1. When First User Login, Page is redirected to the www.example.com/firstuser
2. When Second User Login, Page is redirected to the www.example.com/seconduser

Now Suppose, First User is Login and page is redirected to the page www.example.com/firstuser . Now we Past the www.example.com/seconduser URL in URL bar (Which the second user URL). Which is not valid for first user? In this case page should automatically redirect to the first user page or show error…


HOW WE CAN ACHIVE THIS….????

johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: Is PHP Support, URL Validation…?

Postby johnj » Sun Sep 08, 2013 2:44 am

Make it such a way that all urls go through a common gateway or controller like page where you compare the userid/loginid and redirect accordingly.


Return to “PHP coding => General”

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 2 guests

cron