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 Link to comment https://forums.phpfreaks.com/topic/164026-progam-design-user-logins-and-personal-details/ 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. Link to comment https://forums.phpfreaks.com/topic/164026-progam-design-user-logins-and-personal-details/#findComment-865329 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? Link to comment https://forums.phpfreaks.com/topic/164026-progam-design-user-logins-and-personal-details/#findComment-865372 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. Link to comment https://forums.phpfreaks.com/topic/164026-progam-design-user-logins-and-personal-details/#findComment-865394 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. Link to comment https://forums.phpfreaks.com/topic/164026-progam-design-user-logins-and-personal-details/#findComment-865514 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 . ;-) Link to comment https://forums.phpfreaks.com/topic/164026-progam-design-user-logins-and-personal-details/#findComment-875438 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']; } Link to comment https://forums.phpfreaks.com/topic/164026-progam-design-user-logins-and-personal-details/#findComment-875439 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.