By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,747 Members | 1,672 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,747 IT Pros & Developers. It's quick & easy.

Redirection page

P: 14
I have login page(which is in asp) on my website which is default page.If I logged in ,it will redirct to This file is in pure html, javascript . But suppose someone type this url i.e. directly in address bar he can view this page without login if I am right.How can I avoid this?
I dont want to build these all html pages again in asp. Is there any javascript validation/cookies to avoid this situation.Please suggest.
Aug 3 '09 #1
Share this Question
Share on Google+
1 Reply

P: 23
Yes, someone could just type the address and view the page. JS cookies will prevent most from being able to access the page, but recognize that this would be a completely insecure method, as JS and cookies are client side technologies. Any user with a bit of JS knowledge could delete, edit, or add a cookie that your website would interpret as valid. If the page's content is something that needs to be kept secure, you will need to recode it using a server side technology like ASP. If its something that you don't really want all of your users looking at but wouldn't be harmful if they did, go ahead and use cookies.
Aug 3 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.