156 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for spud91

I have the following code: <?php session_start(); // Starting Session include_once('config.php'); $error=''; // Variable To Store Error Message if (isset($_POST['submit'])) { if (empty($_POST['user']) || empty($_POST['pass'])) { $error = "Please complete both fields"; }else{ // Define $username and $password $user=$_POST['user']; $pass=md5($_POST['pass']); // To protect MySQL injection for Security purpose $user = …

Member Avatar for GESTIC
0
1K
Member Avatar for Jaklins

Hello This is a simple php login script with sessions. It connects to mySQL for usernames and passwords. I’m using a variation of the code from [url]http://www.phpportalen.net/wiki/index.php?page=Enkel+Inloggning+med+Mysql+och+sessioner+-+Komplett+kod[/url] (index.php is the relevant part) Here is my code (my script is called login.php): [code=php] <?php session_start(); // Always at the top include …

Member Avatar for Bharath_6
0
11K
Member Avatar for engrjd91

I am developing an android app for the first time and I wanted to make the sessions for login and logout. I saw that most of the people suggested using SharedPreferences. But how can I check if the user logged out? If the user does not and clicks on my …

Member Avatar for veery channA
0
18K
Member Avatar for nanakumi75

I am trying to get the usernames of users to appear in the url so that I can use $_GET['username'] to grab the username to create a link to the user's profile which can be viewed by any logged in user. So far I can only the logged in user's …

Member Avatar for Dani
0
1K
Member Avatar for nanakumi75

I have a long/register system working . Each user see their own profile details when they login. Now I want to users to see other users profile by clicking on a link to their profile. How do I do this? I need advice

0
764
Member Avatar for rproffitt

Just for all those wondering what's going on, I don't know but I did jump on another PC to check and it was logged in. So I logged out and could not log back in. The first hint there was a problem was when I went to login on my …

Member Avatar for Dani
2
2K
Member Avatar for ArunRaj.SRM

Hi, I'm having my login page as: [code=jsp]<html><head><body> <form action="validateuser.jsp" method="POST"> username - <input type="text" name="userName"> password - <input type="password" name="passWord"> <input type="submit" value="Submit"> <input type="reset" value="Reset"> </form></body></html>[/code] And Validator Page as : [code=jsp]<%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%@page import="java.util.*" %> <jsp:useBean id="idHandler" class="com.suntec.tbms3.ui.Login" scope="request"> <jsp:setProperty name="idHandler" property="*"/> </jsp:useBean> <!DOCTYPE HTML …

Member Avatar for Vaishnav_1
0
13K
Member Avatar for savedlema

Hi everyone! I'm making an application which requires users with different permissions/previleges to login and use the application.For example, if the user is "admin", all menu items in the menu bar are shown and enabled. If the user is say "user_group1", some of the menu items are to be hidden. …

Member Avatar for Reverend Jim
0
6K
Member Avatar for Timothy_9

Hi, I once tried dazah. I could login into my old account on daniweb. But once I tried after a while I couldn't, even when I used forgot password. I was expecting that i would be given a link to change my password which didn't happen. I had to register …

Member Avatar for happygeek
0
263
Member Avatar for blud

We're working on making things a bit different on the DaniWeb/Dazah backend. As a result, there were some routing issues that caused logins to break today if you weren't already logged in. These should be fixed now, sorry for any inconvience.

1
410
Member Avatar for RudyM

Hi All, I tried reading through this: https://www.owasp.org/index.php/Password_Storage_Cheat_Sheet . But I'd like to know if the following scenario is considered good practice for a simple login/registration system. The userlist table: create table simp ( USR VARCHAR (128), PWD varchar (512), SALT VARCHAR(512) ) I created a stored procedure to execute …

Member Avatar for RudyM
0
232
Member Avatar for sarahmohamed97

Create a simple login and signup form in which the user should choose if he wants to login or signup at the beginning. Signup: In which a user enters user name, id and date of birth in a binary file and checks if the id already exists it gives an …

Member Avatar for rproffitt
0
133
Member Avatar for shany0786

I have a admin folder where various .html files are there what happening is when i type http://mydomain.com/index.html it opens up a page and various other page but i want to put restrictions that if user is logined then only he can open other pages otherwise not. What i know …

Member Avatar for TexWiller
0
315
Member Avatar for SagarSe7en

Hello All, I am currently working on developing an authentication system. Below are the details: This code inserts the details (username and password) to the database. the password is hashed and stored in the db package org.controller; import java.io.IOException; import java.io.PrintWriter; import static java.lang.System.out; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; …

Member Avatar for SagarSe7en
0
371
Member Avatar for RudyM

Hi all, I'm having an issue with a local copy of a live WordPress site. The local site itself "http://localhost/mywordpress/" works, but when I try to access the wp-login.php page, it redirects me to the production site. I do the following under a local XAMPP setup: copy the production WP …

Member Avatar for RudyM
0
394
Member Avatar for adikimicky

Hi everyone, I am trying to make a user login page. The user is required to fill username and password in textFields and when he clicks the Submit button, all details are needed to be written in the database. import javax.swing.*; import java.sql.*; import java.awt.*; import java.awt.event.*; public class register …

Member Avatar for Lakhveer
0
7K
Member Avatar for Miurei

I need help about this, I've been working for this a quiet while... I want to log-in using one login form for both admin and normal user but after log in, some of its form and/or buttons in the form should not be available for normal users. here is my …

Member Avatar for Miurei
1
7K
Member Avatar for Divyang_1

i am trying to write code for login system .. but .. i know how to work normally .. nut how to create ..perfect i dont know , help me

Member Avatar for jwenting
0
228
Member Avatar for lukwagomedia

Hi everyone! I know this problem has already been discussed but I use MYSQLI so I have different issue here. My problem is: I have coded a login page (my testing page) för a forum that I am creating. But it doesn't work. I have spent 4 days going through …

Member Avatar for diafol
0
294
Member Avatar for Macko888

Hi I am currently developing a mobile / tablet application and i've run into a stump. I have a webview that loads a form from a website that i have no control over, this website utilises the django platform. So the situation is this: The form on the foreign website …

Member Avatar for Macko888
0
5K
Member Avatar for shany0786

I am very new to sql i have a small doubt.I have a login form where user login[as obvious ] but login user is of two types one for travaller and one for others .I have different tables for travaller and other user containing user login user eg tbl_usrs have …

Member Avatar for pritaeas
0
223
Member Avatar for bharathi_n_r

Hi there,i have joined newly to this site....I am a learner as off now.i am developing a [COLOR="Green"][B]windows application [/B][/COLOR]using c#.net.. I have two types of users [COLOR="Red"]Admin[/COLOR] and [COLOR="Red"]Normal [/COLOR]users. I am having one login screen.i want the application to identify the two types of users when they enter …

Member Avatar for Shashikantp004
0
1K
Member Avatar for rpv_sen

I have created a function. if i provide correct username and password. i am getting a error message as **Sorry, that username / password is invalid !** can any one please help me to fix the issue. **login.php** <?php require 'include/init.php'; $general->logged_in_protect(); if(empty($_POST) === false) { $username = trim($_POST['username']); $password …

Member Avatar for rpv_sen
0
572
Member Avatar for praba_web

Hi there, I have a login form.which contains two input parameters. login_id and password. login_id may be mobile or email. user may use mobile no or email as login id. my table structure is uid email mobile password status when i login through mobile no it is validating and showing …

Member Avatar for diafol
0
450
Member Avatar for Hilal2009

Here are my codes, I want to get access token after user login, but I don't know where am I wrong guys. I know to get access token in PHP SDK v4 but I think It's quite different in PHP SDK v5. Please help me guys <?php session_start(); require_once("Facebook/autoload.php"); use …

Member Avatar for Hilal2009
0
2K
Member Avatar for vasudha k

Can anyone help me out ?....... I have written a code for a form. the first five fileds in the form must be filled automatically by capturing the user id from login page. I have been able to capture the data and print it on the screen But, Iam not …

Member Avatar for jwenting
0
4K
Member Avatar for SimonIoa

helloo i have created a login/register box but javascript doesnt work. I dont see an error and it used to work but i have reinstall the local server and now any of my javascripts dont work. Any help? <script type="text/javascript"> $(document).ready(function() { $(".tab").click(function() { var X=$(this).attr('id'); if(X=='signup') { $("#login").removeClass('select'); $("#signup").addClass('select'); …

Member Avatar for SimonIoa
0
434
Member Avatar for praba_web

How to integrate login in ossn framework html page ? i designed separate page for login module. i have to integrate login in ossn framework index.html.. please give solution..

Member Avatar for jkon
0
117
Member Avatar for Tinnin

Hi All, I'm trying to setup ssh key authentication on a git server and remove the password authentication. The server and any clients are all local at the moment. The clients are running Windows 7. I've got the ssh key part set up but I'm having trouble preventing the password …

Member Avatar for Tinnin
0
462
Member Avatar for berserk

I cant seem to understand the issue with this statement, admittedly i have not written this code myself but have found it and modified it to work with what im doing, as most open source code is. This is for a secure login script that will pull a salted password …

Member Avatar for berserk
0
1K

The End.