Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    May 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Javascript Login

    Hi there,

    I am looking for a Javascript login for a website. The user will need to login and then there will be about 10 pages for them to view. I have found a lot of Javascript logins which seem to work for one page but I need one that can protect all the pages. For example a login may take somebody to .../index.htm and then they can navigate to .../index2.htm etc however if you didn't login and just went to the webpage .../index2.htm this needs to direct people to a login page.

    Thanks in advance for your help.

    AKA

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Not possible to create an effective login system by javascript since this is entirely a client side language. So people can see/modify/even disable javascript. You could use some serverside scripts for this.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,922
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    Have a look at Borgtex's solution:-

    Secure Login with javascript

    Disabling JavaScript will prevent access to the site.

    But I agree that server-side scripting would be a better solution.

  • #4
    New to the CF scene
    Join Date
    May 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for your advice. Is there an easy way to create a login that is secure that is non-javascript?

  • #5
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •