Jump to content

Progam Design - User Logins and Personal Details?


random1

Recommended Posts

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 :D

Link to comment
Share on other sites

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
Share on other sites

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
Share on other sites

  • 3 weeks later...

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.