Click here to Skip to main content
15,908,776 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to deny the access of home page without login if users is accessing the web pages and i want that users should redirected to directly to login page.
Posted
Updated 16-Feb-12 5:14am
v2

Set startup page as Login page..
 
Share this answer
 
When user log-in at that time set user id into session, and add check on page load if userid is not found on to session, you can redirect user to login page.
 
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