login

.NET built-in helper to parse Domain\Username in User.Identity.Name

Is there any built-in utility or helper to parse HttpContext.Current.User.Identity.Name to get separately domain name if exists and user? Or is there any other class to do so? I udnerstand that it's very easy to call String.Split("\") but just intresting ...

Removing the remembered login and password list in SQL Management Studio

I've recently used our company's spare laptop (that has a general user set up) while mine was being repaired. I've checked the "remember password" option in SQL Management studio when logging in to the database. I need to clear the login and password information that i have used to prevent the next person that will use the laptop from u...

Inhouse registration vs. OpenID vs. Google Friend Connect vs. Facebook Connect vs. (etc)

I'm trying to decide how to allow users to register for my website... there's openID, clickpass, facebook connect, google friend connect, etc, or the good old fashioned in-house "enter a username, email, password, etc." Looking briefly at How to set-up OpenID it seems like a lot of work to get openID working. Does anyone have experienc...

Improving a Web Login Screen

Hi there folks, I'm trying to get some ideas about how to develop a web login screen. I'm using DynamicData Webforms, so most of powerful frameworks offers a lot of options, but I'll be very grateful to read your suggestions. Thanks in advance Edited: beyond the functionality, I'll want to read your view-point about the presentation mo...

Permissions required for 'CREATE USER' in SQL Server 2005?

Hi - I am trying to create a SQL server login and database user from within my application, along with a custom application user row. I want these users to be able to create other users - i.e. the application will control who can/can't create users but I need all users to have permissions for creating SQL server logins and database users...

PHP Multi site login

I am currently working on a project that spans accross multiple domains. What I want is for the user to be able to login on one site and be logged in on all the others at the same time. The users session is stored in the database, the cookies that I set on each domain contain the session id. So basically when a user logs in to example....

Concurrent User Sessions - Why Don't We See More Of It?

This is something of a rant, as well as a question. There are some sites, like Facebook, where you would only want to be logged into one account at a time. But everything from blogging sites to email always force you to logout before you can login to another account. And I understand the security implications, and how it would make c...

Two different windows forms in C#

I am new to C# and .NET programming. I want to design an application that opens up with a small login screen and when user presses the "Login" button, my program should close the login form and pass to a new form. How can I achieve this simple process? Thanks. ...

Is it possible to understand successful login based on received cookie?

Hi all, I am developing a C# application that does this (by the way, this is also my first C# app.): gets login information from the user (id, pass), opens a new HttpWebRequest connection to a ASP.NET web page tries to login to this page with the obtained [id,pass] tuple. If login is successful, my HttpWebRequest object contains a c...

PHP Login system using Cookies and Salted Hashes

Hello, I am developing a PHP-based login system. Each user has an ID(a number) and a password, which is stored as a salted hash. I am able to figure out if a login is sucessful or not, but now I need to store that information somewhere(so that the user is not permanently logged out). In the past, I've played with $_SESSION variables. H...

Make submit work by pressing enter on PHP and Javascript login page

I'm pretty new to Javascript and I'm sure this is an easy fix, but I can't figure it out. I'm using a slightly modified version of the code from this page and I want to make the form work by entering the information and pressing enter rather than having to click the button. FYI I've read this thread and can't work out my own answer f...

‘Remember Me’ login in CodeIgniter

How do you implement this in CI ? ...

Run custom code on login

I’ve used the asp.net login control on my sharepoint custom master page. All works well and I can login to my site without problems. However I’d like to run some code once the user has logged, or alternatively perform a redirect based on the user’s role. Has anyone does this type of thing before? ...

Preventing Brute Force Logins on Websites

As a response to the recent Twitter hijackings and Jeff's post on Dictionary Attacks, what is the best way to secure your website against brute force login attacks? Jeff's post suggests putting in an increasing delay for each attempted login, and a suggestion in the comments is to add a captcha after the 2nd failed attempt. Both these ...

SSO Best Practices: What are solutions for unreachable IDP?

Here's something similar to this question on general SSO best-practices. What is the best approach for dealing with a disabled or for-whatever-reason-unreachable central identity provider. If your website allows users to login with their centrally-stored credentials, and the central service is not working or unreachable do you: Allow u...

How do I use a table other than "Users" for CakePHP's AuthController?

CakePHP's AuthController assumes you have a Users table that contains a username and password. I'd like to find a way to override the default tablename from Users to Accounts. Background Information: The way I have designed my database is to have a Users table and an Accounts table. Accounts : id user_id username password authentica...

Creating a login section - Im new an need some serious direction please!

Alright. So I am new, I know my way around html pretty well, and have gotten by for a while now doing so. But today I am presented with a seemingly simple issue. My client needs the ability for users to create their own LOGIN/PASSWORD, my client wants to be able to MANUALLY approve visitors. And he want to be able to track how many tim...

Logging In: Background Details

What happens when you log into a website? I know cookies are stored and some info (what info?) gets sent to the server...but maybe some more detail? ...

Login to the page with HttpWebRequest

How can I login to the this page http://www.bhmobile.ba/portal/index by using HttpWebRequest? Login button is "Pošalji" (upper left corner). HTML source of login page: <table id="maintable" border="0" cellspacing="0" cellpadding="0" style="height:100%; width:100%"> <tr> <td width="367" style="vertical-align:top;padding:3px"><sc...

var for a class in PHP

Hello. I am using a PHP class for login purposes. The MySQL database that the login process checks for the user is defined like this: class flexibleAccess{ var $dbName = 'mydatabase'; However, as I install the application for different people, this $dbName needs constant changes. I have decided to make a config file where I kee...