login

Identify the postback from a ASP.NET Login control

I have a <asp:Wizard> that is only applicable for a logged-out user. If the user is currently logged in, he/she is redirected to another page. On one of the wizard steps, as part of the wizard, I ask for credentials via the <asp:Login> control and log in the user. This presents a problem. According to MSDN: "When a user uses the Login c...

Remember me login - Asp script

hello i have to create a "remeber me login" asp script, have read many scripts about this procedure and have see that many people use to store username and password inside a cookie. In my opinion it is not secure (safety), some advice ...

Forcing .net Login control to make the user logout if a cookie is null..

I have a code base web application that is connected to 2 databases. Depending on which login control a user uses to login, a different database is connected to the code. I am doing all of this by a cookie. This cookie is in a public class called AuthenticatedUser. The class looks like this: public class AuthenticatedUser : System.W...

How to use session on Google app engine

Hi, im building an application using Google app engine with python, and im stuck with making a sessions. Is there any app that does that alreadyfor app engine? Thank you. ...

Login system in .jsp

I have a login.jsp page which contains a login form . Once logged in the user will be taken to index.jsp and this index.jsp should know which user is logged in . If the user refreshes the page he will stay logged in and not taken back to the login.jsp. So there need to be some sort of session. I searched for an example and found about Ja...

CakePHP's Auth->Login not working in production, but works in test

I have a CakePHP website that's been working great. I just developed a new functionality that at one point auto-logs the user in, and redirects him to a page that's behind the login wall. This works perfectly well in my dev machine, but in production, the user gets redirected to the login page. Relevant code: (not much) $objCusto...

HTTP authenticate a directory via an existing users table in a database.

I wish to tie my user accounts into HTTP for a specific directory of my website and normally that wouldn't be too much of a problem, because I could either edit the htpasswd file or use mod_auth_mysql (which I'm not too familiar with). However, the passwords are encrypted using SHA1 and a salt. How can I HTTP authentication password an...

How can I get a user's input when using htaccess/htpasswd?

Hi, I want to create a log in system using htaccess and htpasswd file and PHP for the server-side code, but when the user logs in I want to be able to identify that user, so how can I know what the user typed in as their username using PHP code (I assume I won't need to know the password if they've managed to access the restricted page)?...

How to build login page using cookies ?

I'm looking for a short tutorial about creating a login page for a website using cookies. Each user has a username and a password. Should I save both the username and the password in the cookies ? or just the username may be enough ? Can a malicious user steal somehow these cookies and pass the authorization ? ...

How can I log any login operation in case of "Remember Me" option ?

I have an asp.net login web form that have ( username textBox - password textBox ) plus Remember Me CheckBox option When user login i do the below code if (provider.ValidateUser(username, password)) { int timeOut = 0x13; DateTime expireDate = DateTime.Now.AddMinutes(19.0); if (rememberMeCheckBox.Checked) { time...

Login for PHP site sometimes works

I'm having a problem with my login system. Sometimes it works, sometimes it doesn't. It seems that it fails on the first try more often than not and works on the second go around. There is NO ERROR; the page redirects to the home page as it is supposed to but the session variables are coming up empty. The first code block is the relevan...

I have a Login Control.Even after successful Login it does not redirects to destination page.

I have a ASP.NET Login Control with Forms authentication.Even after successful Login it does not redirects to destination page.But it uses returnURL and stays at same Login page.How to make Login Control to redirect to specified destination page? ...

asp.net membership controls, Login1_LoggingOut is not called when clicking logout

I have a loging control that is nested within a loginview. When I click the logout link, my method ` protected void LoginStatus1_LoggingOut(object sender, EventArgs e) { Guid guidUserId = AuthenticatedUser.LoginUserID; if (guidUserId != new Guid()) { PortalDataContext db = new...

Add new users from other PC to Team Foundation Server 2010

Hello. I have two computers in my house, both with Windows 7 Ultimate 64 bits. I also have installed a Team Foundation Server 2010 on one of them. I want to access TFS 2010 from the other PC but I can't because I don't have a valid user to access. When I try to add that user to TFS 2010 I can't because I can't see the users from the o...

Login from something.com into application.something.com/clientApplicationPage/

Hello, I'm not sure if this can be made by protocol. Let's say we want, on something.com login index page, to allow the user to fill in their application username and password and, once that is done, to have him/her redirected into application.something/clientApplicationPage/ to see is details. Can I have some lights about what shoul...

Problem creating users programmatically in ASP.net

For reference here is what my web.config and code look like: <membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="15"> <providers> <clear /> <add name="SqlProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="MySqlConnection" applicationName="/" ...

spring security 3 login programmatically

I'm creating a REST web service using spring and i need to implement login/logout functions in it. The url for the functions should be something like .../api/login and .../api/logout. The username and password will be past using a POST method. I have a services layer below the REST web service. In the service layer i have the "login" an...

Program user's credentials to automatically login to websites

Here's my scenario - I have the credentials for a couple of websites that need username and password to login. I would like to programmatically do this but just don't where to strrt. For example, say the website is www.mywebsite.com and the the U: UserID and P: admin. I am thinking something like this (this is of course pseudo-code)...

Spring Security: How do I reset SPRING_SECURITY_LAST_EXCEPTION.message?

I am able to display the SPRING_SECURITY_LAST_EXCEPTION.message ("Bad Credentials") when a user tries to log in with incorrect credentials. My login jsp currently uses the following code: <c:if test="${not empty SPRING_SECURITY_LAST_EXCEPTION.message}"> <c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}" /> ...

Separate cookies being stored for http://thewebsite.com and http://www.thewebsite.com?

My friend and I are creating a cookie-based login system using PHP and MySQL, in which when a user logs in, a cookie storing their login information is saved. The problem is, for each URL, http://thewebsite.com and http://www.thewebsite.com, separate cookies are stored. Is there a solution that would allow us to save the same cookie fo...