Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all,
i have a login page ,if admin is logged in then it should redirect to a page
where the header had different tabs ,if user logged in the user had some different tabs in header
on the same page i need to show different tabs to the user and admin
how can i do that

thanks in advance
Posted
Updated 2-Apr-12 21:54pm
v4

1 solution

you can do it in 2 ways

1)maintain 2 home pages, validate the user in login page if user is admin redirect to admin home page else redirect to normal user page(But it is not professional coding )


2) Create a flag values to each user .

when you creating users if he/she was admin give flag value like 1. normal user flag=2, like and save in database

when you validating in login page retrieve flag value from database depending on that flag value show tabs in index page(PHP), in master page(.NET)


Have a great day,

janareddy mareddy
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900