English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

It needs to be made using cookies and JavaScript and variables; something that is basic yet still partially secure. It doesn't need to be the most secure thing in the world. Only JavaScript though, no ASP or PHP because it needs to be something I can understand. Thank you so much!

2006-08-02 15:46:22 · 3 answers · asked by math geek 3 in Computers & Internet Programming & Design

3 answers

Firstly, I think if you can understand JavaScript, PHP would be a breeze for you!

Javascript-protected paged are generally insecure. This is because mostly, the password can be readable by people if they know where to look. Even if it opens a prompt before loading the actual page, it is still insecure simply because the page has already been loaded and its source can be inspected to retrieve the password.

But if I had to use JavaScript, I'd go with script that prompts the user for a username and password, then redirects the user to the protected page that is named something like -.html. This is because the username and password is not embedded within the code itself. This will circumvent most users from knowing the username and password.

Hope this helps! Have fun with programming!!

In response to the above reply...

Basic Authentication may or may not be allowed, depending on your web host. Generally in Linux servers with appropriate options on, you'll just have to create a file called .htaccess in your directory.

There is no such thing as cannot be done. Mostly, it's a balance between issues like speed, security, complexity and functionality.

2006-08-02 15:56:17 · answer #1 · answered by bryanchen 2 · 1 1

You cannot log into anything with javascript alone.

You need something on the server to receive login info and do something with it. Period.
That means asp, php or other, but not javascript.

At best, you can have a 'basic authorization' setup and use javascript to pass name and password. But this only gives users password-controlled access to a directory, nothing more. You would have no user tracking.
(Maybe that is enough for you - to have private pages).

What you might want to consider is finding pre-written scripts that you can simply install and use (no programming).

2006-08-02 15:54:35 · answer #2 · answered by sheeple_rancher 5 · 0 0

Jake's were given the gist of it...you won't be able to apply easy HTML to make completely-functioning sign in/login pages. look into Hypertext Preprocessor...and make certain the server you'd be internet hosting enables you to are making some style of database to save consumer's information. Hypertext Preprocessor is going properly with mysql. in case you in easy words want a web page that asserts sign in or Login, it truly is a diverse tale. you are able to make one of those web page with easy HTML, despite the indisputable fact that it gained't artwork as an exact sign in/login web page. both way, you'd be making use of HTML for for style tags, textboxes, any radio buttons or drop down menus, and evidently the placed up button.

2016-11-27 22:05:33 · answer #3 · answered by ? 4 · 0 0

fedest.com, questions and answers