HelpingHand HelpingHand - 3 years ago 97
HTML Question

How can Javascript redirect a website user back to login page if need be?

If a website user attempts to enter a secure page before entering the login page for the whole website, what script will be able to redirect him back to the login page without hindering his usage of the page normally (after he logged in)?

I am trying to do this with javascript and cookies. You guys have any ideas? Thanks ahead of time.

I need the cookie creation and detection scripts. Thank you.

Ibu Ibu
Answer Source

You will have to handle this on the server-side. If you build this functionality with javascript, simply disabling javascript will allow the user to access your secured content.

Use a server side language for this.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download