login-script

Cookie token authentication login method

…衆ロ難τιáo~ 提交于 2019-12-21 02:58:08
问题 There is a method that is using cookies to login users and i don't know it's name. It's setting a unique token to the cookie each time a user logs in. The token is visible and it is set in 1 cookie. There is also a second cookie, which is having a hash in it. Based on these 2 cookies we have: the login system is more secure, because each 5 minutes its making a new token and changes the hash value this authentication system doesn't require the script to verify users in database each page load.

Syntax Error with Database Login System

断了今生、忘了曾经 提交于 2019-12-20 06:48:10
问题 Created a website login system but when I run it it keeps coming up with this error to the particular bit of coding below. Can someone PLEASE help me with this Error message on this particular code: System.Data.SqlClient.SqlException: Incorrect syntax near the keyword 'user'. Code: public static User LoginUser(string login, string password) { //Check if user exists string query = string.Format("SELECT COUNT(*) FROM TeesDB.dbo.user WHERE name = '{0}'", login); command.CommandText = query; try

Cannot login programmatically to facebook using htmlunit

懵懂的女人 提交于 2019-12-20 01:42:11
问题 I have tried the code given in HTMLunit - Facebook Login and Using HTMLUnit to log into Facebook programmatically using Java. However I am not logged into facebook. With javascript enabled webClient.setJavaScriptEngine(new JavaScriptEngine(webClient)); webClient.getOptions().setJavaScriptEnabled(true); I get the page https://www.facebook.com/login.php?login_attempt=1&lwv=110. Also several warnings and errors are reported by htmlunit: WARN: (HtmlScript.java:472): Script is not JavaScript (type

Login using MySqli Prepared Statement

放肆的年华 提交于 2019-12-13 10:43:07
问题 I checked my code by replacing all the statements inside IF with a echo statement and its working fine.. if($rows==1){ echo "Record exists in DB"; } I don't know why $result = mysqli_stmt_get_result($stmt); returning false and I am getting error as Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in E:\xampp\htdocs\jq\login_system_sql_injection_proof\loginprocess.php on line 57 I Wasted more than a day for searching Solution over Internet but did not find

Create a simple PHP login with sessions and multiple users

穿精又带淫゛_ 提交于 2019-12-13 07:48:31
问题 I am searching for a answer how to create a $_SESSION login. The result I get every time is Dexter. Even when I just press the login button. I am using sessions and no MySQL or other database. I am just in the beginning to learn PHP and have looked around here and used google but I can't relate was I am doing wrong. The login page looks like this: <?php session_start(); $_SESSION['usernamne1'] = "Dexter"; $_SESSION['usernamne2'] = "River"; $_SESSION['usernamne3'] = "Miro"; $_SESSION[

Help a Beginner with a PHP based Login System

纵饮孤独 提交于 2019-12-13 05:08:35
问题 I'm a bit embarrassed to say, but I've run into issue with creating a PHP based login system. I'm using a site template to handle the looks of the the login process, so I will spare you the code. Here is my thought process on how to handle the login: Create a simple login.php file. On there will be a form whose action is set to itself. It will check to see if the submit has been clicked, and if so validate to make sure the user entered a valid password / username. If they do, set a session

Needing guidance on how to redirect a user if not logged in on admin panel

谁说胖子不能爱 提交于 2019-12-13 03:11:17
问题 At the moment I have an extremely basic admin login system. I am able to login in through my admin_login.php page which has a script from my login.php page I can update records from the admin_control_panel.php. My main concern is the fact that anyone can type these URL's straight into the address bar and bypass the login procedure. My code at the moment isn't based around security (I am just trying to get all my basic functionality and features up and running, I will then focus on security).

login to website using HTMLAgilityPack

北城余情 提交于 2019-12-12 07:26:18
问题 In the below code, I can set the value of the username and password using the HTMLAgilitypack but I cannot invoke the click event of the login button (the id in the source code of the button is "s1"). Is there anyway for this to be done? The reason I'm not using the WebBrowser is because I will need the HTMLAgilityPack to retrieve data from the page without IDs in the source code. var doc = new HtmlWeb().Load("http://MYURL.com"); doc.DocumentNode.SelectSingleNode("name").SetAttributeValue(

Website Login Error

心已入冬 提交于 2019-12-11 19:19:40
问题 I created a website login system but when I run it it keeps coming up with this error to the particular bit of coding below. Error: An exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll but was not handled in user code Additional information: Incorrect syntax near the keyword 'user'." Code: public static User LoginUser(string login, string password) { //Check if user exists string query = string.Format("SELECT COUNT(*) FROM TeesDB.dbo.user WHERE name = '{0}'",

How secure Dreamweaver PHP login logout is?

夙愿已清 提交于 2019-12-11 10:42:39
问题 just for knowledge sake, i wanna know that how good is to use a Dreamweaver in-built feature of PHP login logout authentication? Is it secure? I always use sessions, posts and so many things to build a login system, however when i used the Dreamweaver one, it was quite simple and seems to be secure. Still need expert advice, should i start using it or the traditional one is better. I don't find any limitation, just want to know that weather it is secure enough or not. Here is the code which