random1 Posted June 29, 2009 Share Posted June 29, 2009 Hey All, Just a few questions regarding user login security and personal details. - Is it safer to allow users to be logged into their account from multiple locations at once of limit it to one location (single-sign-on)? - Is it illegal to record a user's IP Address in a database? Responses are much appreciated Quote Link to comment Share on other sites More sharing options...
dbo Posted June 29, 2009 Share Posted June 29, 2009 1) It really depends on the application and how many layers of security you want to implement. For most applications I would say this is overkill. You'll have to balance security and usability for your needs. 2) No it's not illegal. Quote Link to comment Share on other sites More sharing options...
random1 Posted June 29, 2009 Author Share Posted June 29, 2009 Thanks. Are there any problems caused by implmenting a "logged into their account from multiple locations at once and limit it to one location" logic to an app? Quote Link to comment Share on other sites More sharing options...
corbin Posted June 29, 2009 Share Posted June 29, 2009 Certain users might have certain ISPs (and by certain ISPs I mean AOL [boo-hiss!]) that change IP addresses quite frequently due to proxying everything through various locations. Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted June 29, 2009 Share Posted June 29, 2009 Are there any problems caused by implmenting a "logged into their account from multiple locations at once and limit it to one location" logic to an app? Many people frequently use multiple computers. Having to log in all the time would be a pain in the ass for normal sites like this. Quote Link to comment Share on other sites More sharing options...
gregor171 Posted July 14, 2009 Share Posted July 14, 2009 Many people frequently use multiple computers. Having to log in all the time would be a pain in the ass for normal sites like this. The question is, would it be a normal site and what he would want to gain with this single-sign-on . ;-) Quote Link to comment Share on other sites More sharing options...
Andy-H Posted July 14, 2009 Share Posted July 14, 2009 function ipCheck() { if ( getenv('HTTP_CLIENT_IP') ) return getenv('HTTP_CLIENT_IP'); if ( getenv('HTTP_X_FORWARDED_FOR') ) return getenv('HTTP_X_FORWARDED_FOR'); if ( getenv('HTTP_X_FORWARDED') ) return getenv('HTTP_X_FORWARDED'); if ( getenv('HTTP_FORWARDED_FOR') ) return getenv('HTTP_FORWARDED_FOR'); if ( getenv('HTTP_FORWARDED') ) return getenv('HTTP_FORWARDED'); return $_SERVER['REMOTE_ADDR']; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.