login

Set focus to textbox in ASP.NET Login control on page load.

Hiya, I am trying to set the focus to the user name TextBox which is inside an ASP.NET Login control. I have tried to do this a couple of ways but none seem to be working. The page is loading but not going to the control. Here is the code I've tried. SetFocus(this.loginForm.FindControl("UserName")); And TextBox tbox = (TextBox)t...

Can I setup a specific login action for each module?

Hi, I'm working on a symfony 1.4 project which contains a frontend and a backend. I want to know if it's possible to configure a different login action for each module. I've tried to add a settings.yml file in the config folder of each module but it doesn't work. Thanks, ...

ASP.NET logon and registration with browser password memory

I have followed the asp.net pages for registration and login. Everything works, except that the username/password combo is never remember by the browser (ie. browser autocomplete). This is an issue with all browsers. The key fields seem to be named appropriately, I think: <LayoutTemplate> <div class="formlayout"> ...

[grails] Redirect after login?

Hi all, in my Grails app I have a couple of simple security filters (please note it's just a prototype, not a commercial app: securityCheckFilter(controller:'overview', invert:true) { before = { if(!session?.gaSession?.gaUser) { flash.message = "You are not authorised to see this page. Ple...

Java: Handling cookies when logging in with POST

I'm having quite some trouble logging in to any site in Java. I'm using the default URLconnection POST request, but I'm unsure how to handle the cookies properly. I tried this guide: http://www.hccp.org/java-net-cookie-how-to.html But couldn't get it working. I've been trying basically for days now, and I really need help if anyone wants...

[CakePHP] How to add some action after login (and before redirection)?

hello, trying to develop some sort of login tracker for my cakephp application. i know that i need code like: $this->data['LoginSession']['username'] = $_SERVER['REMOTE_ADDR']; $this->data['LoginSession']['ipAddress'] = $_SERVER['REMOTE_ADDR']; $this->LoginSession->save($this->data); ... in (i guess) users_controller, but don't know...

Add login / logout to drupal menu that's not a primary or secondary menu

Hello, Im trying to append an item to a menu that I created. I know its get the primary and secondary menus using "menu_secondary_local_tasks()" etc, and then add items within preprocess page. How would I go about this with a menu that I created? Here is the code I am using to check is the user is logged in... function themeName_chec...

Asp.net login problem.

Hello, im building a asp.net web site with 2.0 framework. I've been "fighting" with web.config, i've changed it quiet some times. So to start from scracht this is what i have: <?xml version="1.0" encoding="utf-16"?> <configuration> <connectionStrings> <remove name="LocalSqlServer"/> <add name="ABC" connectionString="Database=jsilva...

Servlet NOT_FOUND (GWT+AppEngine)

I want to develop my first AppEngine application, that will also use GWT. Since I don't have any experience with GWT and AppEngine, I started with tutorials on GWT site, and after succefully completing Getting Started, I started working on http://code.google.com/webtoolkit/doc/latest/tutorial/appengine.html But I ran into a problem, and...

Display small form while main form is "locked"

Hi there, i'm thinking about writing a WPF program that would require login and password at the app startup. I thought about small form with two textboxes as a login form. User will have to fill in his details and then the main form of the application will be unlocked. How will you solve this? Thanks for your answers, daemonsvk ...

Reboot windows machines at a certain time of day and automatically login with Python

I know how to reboot machines remotely, so that's the easy part. However, the complexity of the issue is trying to setup the following. I'd like to control machines on a network for after-hours use such that when users logoff and go home, or shutdown their computers, whatever, python or some combination of python + windows could restart ...

PHP Session timeout

I am creating a session when a user logs in like so: $_SESSION['id'] = $id; How can I specify a timeout on that session of X minutes and then have it perform a function or a page redirect once it has reached X minutes?? EDIT: I forgot to mention that I need the session to timeout due to inactivity. ...

How to get in Apache password protected directories without showing popup login

I read here how to get into an Apache password protected directroy via dircet link with the simple: http://username:[email protected]/protected_dir/ that works in FF/Chrome/Safari, and obviously not in IE7! :) Do you know how could i get into a psw protected directory creating maybe a login form and using GET/POST to get in? Do...

Processing a website by using POST data and cookies

I try to access an ASPX-website where subsequent pages are returned based on post data. Unfortunately all my attempts to get the following pages fail. Hopefully, someone here has an idea where to find the error! In step one I read the session ID from the cookie as well as the value of the viewstate variable in the returned html page. St...

Case insensitive login in Grails with acegi

Hi, is there a way to force the login to be case insensitive using acegi in grails ? I didn't find a matching entry to be set in the SecurityConfig file. Thanks ...

Login Form For Http Basic Auth

Hello everyone, I am running a Perl application named bitlfu.For login it is using something like Apache HTTP Basic Auth but not a form.I want to make form for the login with username and password filed. I have tried JavaScript and PHP with no results till now. So I need help! PS: this kind of url works http://user:[email protected] ...

Facebook API: user is logged in, but did not grant any permissions

Please look at the example below: Now while scenarios #1 and #3 are quire obviouse, my question is: Is it possible that scenario #2 is valid ? i.e Connected - But no permissions given. Thanks. -- Code: FB.login(function(response) { if (response.session) { if (response.perms) { // #1 user is logged in and grante...

How to get a list of online users in Authlogic?

Hey, I've added a last_request_at field to my user table in Ruby on Rails, so now I can call the authlogic method User.logged_in.count and it returns the correct value. But how do I get a list of all logged in users? Thanks for reading. ...

Why is "Forgotten Password" bad?

I came across this statement Do not use "forgotten password" functionality. But if you must, ensure that you are only providing information to the actual user, e.g. by using an email address or challenge question that the legitimate user already provided in the past; do not allow the current user to change this identi...

How do I add NETWORK SERVICE login via SQL Authentication?

I am trying to add the NETWORK SERVICE login cause I still can’t connect to the AdventureWorks3 database. But I want to add this NETWORK SERVICE login via SQL Server Authentication and not Windows. When I select Windows authentication, it lets me create this login. But when I select SQL Server Auth, it gives me the following error: Crea...