Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I make a small application in .net. After login the welcome page is opened.
i am using firefox browser as default to run this application. But when i copy-paste the URL in IE(internet explorer) of my welcome page, then the page is displayed in I.E also. i want the welcome page simply redirect to login page if browser is different. Tell me the simple step that i should follow.
Posted
Updated 11-Oct-10 19:23pm
v2

1 solution

You need to write code to verify if the user accessing the page is logged in or not. In case he is not logged in then redirect him back to login page.

Not sure how you are handling the authentication but in case you are using asp.net membership, you can have this happen automatically based on user permission levels.

Or you can use sessions to validate current user.
 
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