login

How to redirect to Login page when Session is expired in Java web application?

I'm running a web application in JBoss AS 5. I also have a servlet filter which intercepts all the requests to the server. Now, I want to redirect the users to the login page, if the session has expired. I need to do this 'isSessionExpired()' check in the filter and need to redirect the user accordingly. How do I do it? Edit: I'm setti...

Use email as user name in ASP.NET LogIn Control

I want to use the regular login system in an ASP.NET app, but I want to use the user's email address as their user name (as is common in many web sites.) However, there seems to be no property or attribute to allow me to do something like this; user name and email address always seem to be separate. Is it possible to do this or is some c...

Using ASP.NET login controls wih deny="?"

I have a website built with ASP.NET (3.5) and want add some level of security into it. I am using the login controls to help with this. I have one issue though. I have within my web.config the following. <authorization> <deny users="?"/> </authorization> This work fine when a user has not logged in before (ie. if they goto ...

Login UI for web apps

I've noticed that Gmail, Hotmail, Yahoo, and Ebay all have their login boxes on the right. Amazon's is on the left, though. Does anyone know why the right side seems to be the 'right' way to go? ...

writing a login page and validating the user

I am writing a login page for my site. I was thinking, would generating a random 64bit number and store it in the DB along with a httpOnly cookie be a good way to store the data? then every time a user receives a page (theres a toolbar which says how many new msg he has) to check if the random cookie matches the random cookie + userId in...

How to create a database driven login system

I want to create a website that the login system shouldn't be handled by cookies, but on (a) table(s) in the local (on the server) SQL DB. Is there a way to do it? Even no partial way? What and where should I save instead of the cookie??? ...

How to login without leaving RP by showing the OP login window in iframe ?

How to login without leaving RP by showing the OP login window in iframe ? I am using Openid Provider for the login in my Website. how to implement the login window inside the iframe. ...

Determine if user can access the requested page?

I have an ASP.Net website with multiple roles, each with access to a separate directory (i.e. admin users can access /admin, shoppers can access /shop etc), using a shared login page. If someone visits the login page with the return URL set to a directory they do not have access to (e.g. a shopper visits /login.aspx?returnurl=/admin/ind...

What's the standard for safeley and legitimacy for bringing in contacts from other websites? (ie. Facebook, Twitter, Gmail, etc...)

check it out: http://www.chillitickets.com/CustomerOffer.aspx Using Facebook as an example: Is the Facebook logo enough for it to be considered legit/safe login or is a full redirect to Facebook required? I know Facebook is trying to push Facebook Connect, but I'm not sure if they still allow this kind of thing or if it's something th...

SQL Server login for SharePoint site login errors SSO

I'm having a very confusing error between SharePoint and SQL Server 2k5. My SQL Server acting as backend to my MOSS farm has several logins in it which correspond to the web front end servers in my farm, with the pattern: {my-domain}{my-machine}$ Now, those accounts do not exist in AD anywhere, despite the login name syntax, and wer...

Can't log in to Meta-SO

Hey guys, I'm trying to log into Meta-SO with my open-id that i use with SO, but it doesn't seem to be taking. I get redirected back to Meta-SO and it doesn't log me in. Is anyone else having this problem or am I just crazy? I'm using myopenid.com as my provider, coming from a redirect off of my website. I fully expect this question...

VBScript FTP Login with Username and Password

I am trying to update a VBScript (very little experience with this, I do a lot of VB.NET), that reads an FTP directory and moves certain files to a new local directory on a daily basis. I have old code that works on an FTP site that uses anonymous logins, but I now need it to access an FTP site that requires username and password. Here...

Is it possible to replace the Mac login screen?

Is it possible to replace the Mac OS X login window, /System/Library/CoreServices/loginwindow.app, with a custom login window application? (See my rational for doing so.) I'm afraid my Cocoa programming skills are rudimentary. I do find it interesting that, when I run probe CGSession (which is a undocumented utility that performs fast...

Intranet login/domain

If a user navigates to my webpage how can I programmatically determine they are accessing my page from within the Intranet? (Not interested in NTLM or Windows forms authentication. Need a programmatic method.) ...

Put an OpenID and Google Account Login in a Rails Project

Hello, I'm starting in the Rails world and i want to know how to put an login system like that here in Stack Overflow uses. Thanks, and remember that i'm starting, and if you can post a link to a very good tutorial, is very nice. ...

ASP.NET Login control, how to query user-specific data

Hi, I have installed a Login control in ASP.NET/C# in login.aspx and after the user has logged in, it takes him to the member.aspx page. All works perfectly fine but what should I do if I want to query a database for some user-specific data? How would I do that? ASPNETDB.MDF is the database, I have created another table with some addit...

how to put header authentication into a form using php?

Hey guys, for the page I am doing needs a login authentication using Twitter (using tweetphp API). For test purposes I used this code below to do a successful login: if (!isset($_SERVER['PHP_AUTH_USER'])){ header('WWW-Authenticate: Basic realm="Enter your Twitter username and password:"'); header('HTTP/1.0 401 Unauthorized'); echo ...

Add items to list programatically

Hi all, I am using form base authentication in my Sharepoint site. On my login page there are custom fields to be filled by unauthenticated user. These fields i want to add in to my list. I am using following code to insert record in list. protected void AddVendor(object sender, EventArgs e) { string strList = "http://comp01:5353/Li...

Disable Account due to Login 3 times failed.

Recently i read an article is about prevent brute-force attack. It said that automatically disabling user accounts is a poor security mechanism to fight a dictionary attack. In the first place, If an attacker can disable an account by incorrectly guessing its password three times every 30 minutes, he can effectively prevent that user fro...

Generating pages from a database

Hi, I'm looking for some help understanding how to generate pages from a database to create a catalog of items, each with different URLs. All I can seem to find through google are products that will do this for me, or full e-commerce solutions. I don't want a shopping cart! Just an inventory. Also, perhaps someone could recommend their ...