PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Closed Thread
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 7th, 2012, 09:31 AM
NotionCommotion NotionCommotion is offline
Contributing User
Click here for more information.
 
Join Date: Sep 2006
Posts: 1,464 NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 6 h 21 m 9 sec
Reputation Power: 526
Strategies for "Remember Me" Username/Password

I wish to add a "Remember Me" check-box to my logon screen. I will be using PHP and Ajax, however, the questions pertain to other technologies as well. I've read a little about storing user credentials client side and using hashing and salt, but don't know if that is the way I wish to do it.

Instead, I am thinking of something like the following. Make sense? Any concerns?

Thanks


PHP Code:
/*
Creating Form
*/
if(isset($_SESSION['remember_me']))
{
    echo(
'<input name="username" type="text" value="'.$_SESSION['remember_me'].'"><input name="password" type="password" value="******">');
}
else
{
    echo(
'<input name="username" type="text" value=""><input name="password" type="password" value="">');
}

/*
Checking Password Script
Given $_POST['username'], $_POST['password'], $_POST['remember_me']
*/
if($_POST['remember_me'])
{
    if(isset(
$_SESSION['remember_me']) && $_SESSION['remember_me']==$_POST['username'] && $_POST['password']=="******")
    {
        
//Validate that username exists in database, but do not validate password.
    
}
    else
    {
        
//Validate using $_POST['username'] and $_POST['password'].  If okay, set $_SESSION['remember_me']=$_POST['username']
    
}
}
else
{
    
//Validate using $_POST['username'] and $_POST['password'].  unset $_SESSION['remember_me']


Reply With Quote
  #2  
Old November 7th, 2012, 10:01 AM
jaimitoc30 jaimitoc30 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2012
Posts: 37 jaimitoc30 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 44 m 41 sec
Reputation Power: 1
Quote:
Originally Posted by NotionCommotion
I wish to add a "Remember Me" check-box to my logon screen. I will be using PHP and Ajax, however, the questions pertain to other technologies as well. I've read a little about storing user credentials client side and using hashing and salt, but don't know if that is the way I wish to do it.

Instead, I am thinking of something like the following. Make sense? Any concerns?

Thanks


PHP Code:
/*
Creating Form
*/
if(isset($_SESSION['remember_me']))
{
    echo(
'<input name="username" type="text" value="'.$_SESSION['remember_me'].'"><input name="password" type="password" value="******">');
}
else
{
    echo(
'<input name="username" type="text" value=""><input name="password" type="password" value="">');
}

/*
Checking Password Script
Given $_POST['username'], $_POST['password'], $_POST['remember_me']
*/
if($_POST['remember_me'])
{
    if(isset(
$_SESSION['remember_me']) && $_SESSION['remember_me']==$_POST['username'] && $_POST['password']=="******")
    {
        
//Validate that username exists in database, but do not validate password.
    
}
    else
    {
        
//Validate using $_POST['username'] and $_POST['password'].  If okay, set $_SESSION['remember_me']=$_POST['username']
    
}
}
else
{
    
//Validate using $_POST['username'] and $_POST['password'].  unset $_SESSION['remember_me']



Why don't you try with cookies. You can use a code similar to the above and use cookies. Cookies will be saved in clients browser. You can store variables values in those cookies. When user access, you read those values from the cookies and thats it. Unless the user delete cookies and temp files, this should work fine.

Reply With Quote
  #3  
Old November 7th, 2012, 10:12 AM
NotionCommotion NotionCommotion is offline
Contributing User
Click here for more information.
 
Join Date: Sep 2006
Posts: 1,464 NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 6 h 21 m 9 sec
Reputation Power: 526
Quote:
Why don't you try with cookies.
Sessions are basically cookies with a twist.

The advantous of a cookie is they will exist until the client deletes them, while sessions might have their server side component deleted.

Cookies won't work, however, since a user would only need to set a cookie to someone else's username, and they would bypass all security. With a session, they would need to guess the random session ID.

Reply With Quote
  #4  
Old November 7th, 2012, 10:14 AM
jaimitoc30 jaimitoc30 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2012
Posts: 37 jaimitoc30 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 44 m 41 sec
Reputation Power: 1
Quote:
Originally Posted by NotionCommotion
Sessions are basically cookies with a twist.

The advantous of a cookie is they will exist until the client deletes them, while sessions might have their server side component deleted.

Cookies won't work, however, since a user would only need to set a cookie to someone else's username, and they would bypass all security. With a session, they would need to guess the random session ID.


I have seen a lot of libraries to encrypt cookie data. That would fix that security issue. take a look at phpclasses dot org

Reply With Quote
  #5  
Old November 7th, 2012, 11:41 AM
NotionCommotion NotionCommotion is offline
Contributing User
Click here for more information.
 
Join Date: Sep 2006
Posts: 1,464 NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 6 h 21 m 9 sec
Reputation Power: 526
Thanks jaimitoc30, I will take a look.

But do you think about my approach without storing passwords client side?

Reply With Quote
  #6  
Old November 7th, 2012, 12:17 PM
jaimitoc30 jaimitoc30 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2012
Posts: 37 jaimitoc30 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 44 m 41 sec
Reputation Power: 1
Quote:
Originally Posted by NotionCommotion
Thanks jaimitoc30, I will take a look.

But do you think about my approach without storing passwords client side?


I believe it is highly unsecured as the password it not encrypted. When echoing the password field, for it to work, the value of it should be the decrypted. Now, if you go right click, view source, you will see the password in plain text, example:

<input name="txtPassword" type="password"
maxlength="128" id="txtPassword" value="123" />

This approach is very difficult, because the whole idea is to have some data where you can recognize a machine and match it up with a boolean variable and with the database encrypted password. The problem is what data can you use. Since you are using server side script, the only thing that may work is using javascript to get some client info where you can match and remember the machine. You can use the approach you are referring to, but, how will you recognize which machine trying to access? You will need to read how sessions work in PHP, cause I am pretty use it will use cookies. It will store a session id. When the machine tries to access the site, it will look for the session id stored in the cookie and match it with the machine and the credentials and will automatically open the session. What I would do in your case is reading all the details on PHP session to better understand how it works. Also, be careful when echoing password form field. I have seen some tips and tricks on echoing that, or you can use a hidden field for password, so you will not reveal the password when echoing the field.

Reply With Quote
  #7  
Old November 7th, 2012, 12:41 PM
wardly wardly is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 2 wardly User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 44 m 5 sec
Reputation Power: 0
if memory serves sessions use cookies unless otherwise specified that you don't want to use them and then you'll need to be passing the session id around in every url and form post on your site to get around from using them.

Also doing it the way you are looking at here isn't as its already been pointed out the greatest of approaches from the security and consistency stand point.

You can use cookies as just don't put the userid/password in the cookie. instead put a session id or other unique id that can be traced back to a database table containing the needed information. This allows you to also add other items of criteria also, you can store the IP address or anything else you want to use to help identify the person. then you can use a cron job to clean out that table every x number of days and once a user shows up on your site with a cookie that has had it's server side record deleted then you remove the cookie and force the user to log in again. you can even send them an email everytime they log into your site from a different computer to let them know (although i tried this and it gets annoying after a little while).

This site and a very large portion of sites use cookies, yes they aren't ideal but they do the trick.

Reply With Quote
  #8  
Old November 7th, 2012, 12:52 PM
ManiacDan's Avatar
ManiacDan ManiacDan is offline
Likely to be eaten by a grue.
Dev Shed God 10th Plane (9500 - 9999 posts)
 
Join Date: Oct 2006
Location: Pennsylvania, USA
Posts: 9,791 ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)  Folding Points: 127430 Folding Title: Super Ultimate Folder - Level 1Folding Points: 127430 Folding Title: Super Ultimate Folder - Level 1Folding Points: 127430 Folding Title: Super Ultimate Folder - Level 1Folding Points: 127430 Folding Title: Super Ultimate Folder - Level 1Folding Points: 127430 Folding Title: Super Ultimate Folder - Level 1Folding Points: 127430 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 2 Months 3 Weeks 14 h 53 m 20 sec
Reputation Power: 6112
The session cookie is destroyed when you close your browser, so none of this technique will work. Also, don't use ajax.

NEVER store user credentials client-side.

A "remember me" cookie should contain a salted one-way hash of three kinds of user information:
1) User computer identity
2) User-available user data
3) User-unavailable user data

If the user has the "remember me" box checked when they log in, create a hash of that data, for instance:
1) User-agent and IP address
2) Username (NOT PASSWORD NEVER PASSWORD)
3) User creation timestamp, internal userID, etc.

Hash that with a salt, then set it as the "remember" cookie using setcookie. Also set a "remember_user" cookie with their username.

Then, have your login page check for the "remember" cookie. If it's set, take:
#1 from the current $_SERVER variable
#2 from their "remember_user" cookie
#3 from your database using #2

Then hash it and compare it to the "remember" cookie, logging them in as that user if the check is successful.

This way, an attacker would have to know the user's username, user-agent, IP address, AND creation timestamp, as well as your hashing methods and salt. By combining the three types of data (immediate, user-provided, server-provided) you get as close as possible to ensuring that the user is who they say they are.
Comments on this post
piperpam27 agrees: Excellent information!
jesirose agrees!
NotionCommotion agrees: Thanks!
__________________
HEY! YOU! Read the New User Guide and Forum Rules

"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin

"The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002

Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.

Last edited by ManiacDan : November 24th, 2012 at 11:06 AM.

Reply With Quote
  #9  
Old November 7th, 2012, 12:55 PM
wardly wardly is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 2 wardly User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 44 m 5 sec
Reputation Power: 0
Quote:
Originally Posted by ManiacDan
The session cookie is destroyed when you close your browser, so none of this technique will work. Also, don't use ajax.

NEVER store user credentials server-side.

A "remember me" cookie should contain a salted one-way hash of three kinds of user information:
1) User computer identity
2) User-available user data
3) User-unavailable user data

If the user has the "remember me" box checked when they log in, create a hash of that data, for instance:
1) User-agent and IP address
2) Username (NOT PASSWORD NEVER PASSWORD)
3) User creation timestamp, internal userID, etc.

Hash that with a salt, then set it as the "remember" cookie using setcookie. Also set a "remember_user" cookie with their username.

Then, have your login page check for the "remember" cookie. If it's set, take:
#1 from the current $_SERVER variable
#2 from their "remember_user" cookie
#3 from your database using #2

Then hash it and compare it to the "remember" cookie, logging them in as that user if the check is successful.

This way, an attacker would have to know the user's username, user-agent, IP address, AND creation timestamp, as well as your hashing methods and salt. By combining the three types of data (immediate, user-provided, server-provided) you get as close as possible to ensuring that the user is who they say they are.


Winner!

Reply With Quote
  #10  
Old November 7th, 2012, 01:06 PM
jaimitoc30 jaimitoc30 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2012
Posts: 37 jaimitoc30 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 44 m 41 sec
Reputation Power: 1
Quote:
Originally Posted by wardly
Winner!


LOL yes, he is.

Reply With Quote
  #11  
Old November 7th, 2012, 02:37 PM
NotionCommotion NotionCommotion is offline
Contributing User
Click here for more information.
 
Join Date: Sep 2006
Posts: 1,464 NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 6 h 21 m 9 sec
Reputation Power: 526
Thanks Dan, Great post!

I guess I didn't realize (or forgot) that session cookies were destroyed when closing the browser. A couple of questions...

1. Why not use AJAX?
Code:
$.post('index.php',{
        task:'logon',
        username:$('#username').val(),
        password:$('#password').val(),
        remember:$('#remember').val()
    },
    function (data)
    {
        if(data.status==true){window.location.reload();}
        else {alert(data.msg);}
    },'json');


2. I am using phpass for saving and verifying passwords. Can it be used for this scope as well?

3. When displaying the form when the "remember me" cookie is set, the user should have some indication that the password is in the input field (i.e. bullet marks, but obviously not the real password). I wish to have the password input display a shaded "Password", and when the user focuses on it, it changes to an empty field. To do so, I am using a password input and text input, and using JavaScript to display the appropriate one. Any suggestions on how to show the bullets when the "remember me" cookie is set? Feel free to tell me this question belongs in the JavaScript forum.

Thank you

Reply With Quote
  #12  
Old November 7th, 2012, 03:07 PM
ManiacDan's Avatar
ManiacDan ManiacDan is offline
Likely to be eaten by a grue.
Dev Shed God 10th Plane (9500 - 9999 posts)
 
Join Date: Oct 2006
Location: Pennsylvania, USA
Posts: 9,791 ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)  Folding Points: 127430 Folding Title: Super Ultimate Folder - Level 1Folding Points: 127430 Folding Title: Super Ultimate Folder - Level 1Folding Points: 127430 Folding Title: Super Ultimate Folder - Level 1Folding Points: 127430 Folding Title: Super Ultimate Folder - Level 1Folding Points: 127430 Folding Title: Super Ultimate Folder - Level 1Folding Points: 127430 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 2 Months 3 Weeks 14 h 53 m 20 sec
Reputation Power: 6112
1) If you're going to reload the whole page anyway, why use ajax? Ajax is for doing asynchronous data requests which do not reload the page.

If you post a form, you send the data to the server, and the server sends back the new page.

If you use ajax, you post the data to the server, parse the response, request a new page from the server, and the server sends back the new page.

It's 2 extra steps.


2) You can use PHPass to generate these hashed cookies, yes. Don't use the password in that hash though.

3) Never display a login form when the user has the "remember me" cookie. Log them in. That's it. Don't show them a login form so they have to click a button, just log them in, that's the point of it. There's no scenario where a user has a valid "remember" cookie and sees a login screen. I don't know why you keep bringing this scenario up. Does it happen anywhere else that you can point me to? It doesn't happen here on devshed.

Reply With Quote
  #13  
Old November 7th, 2012, 03:17 PM
NotionCommotion NotionCommotion is offline
Contributing User
Click here for more information.
 
Join Date: Sep 2006
Posts: 1,464 NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 6 h 21 m 9 sec
Reputation Power: 526
1. Upon reloading the page, it will display the next appropriate page. Using Ajax prevents reloads when username/password doesn't validate. Yes, it is a little more work, but I feel it is a better user experience. Unless you can think of a security reason not to do so, I will use Ajax.

2. Thanks for the PHPass confirmation.

3. I don't know why I keep on bring this scenario up. I have seen it before, but I agree it makes no sense. I will do as you suggest.

Thanks

Reply With Quote
  #14  
Old November 7th, 2012, 03:23 PM
jaimitoc30 jaimitoc30 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2012
Posts: 37 jaimitoc30 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 44 m 41 sec
Reputation Power: 1
Quote:
Originally Posted by NotionCommotion
1. Upon reloading the page, it will display the next appropriate page. Using Ajax prevents reloads when username/password doesn't validate. Yes, it is a little more work, but I feel it is a better user experience. Unless you can think of a security reason not to do so, I will use Ajax.

2. Thanks for the PHPass confirmation.

3. I don't know why I keep on bring this scenario up. I have seen it before, but I agree it makes no sense. I will do as you suggest.

Thanks


I am pretty sure you have seen this scenario when you tell the browser to remember the password. That is something done by the browser. Usually in server side scripts, the correct way is as mentioned above.

Reply With Quote
  #15  
Old November 7th, 2012, 03:27 PM
ManiacDan's Avatar
ManiacDan ManiacDan is offline
Likely to be eaten by a grue.
Dev Shed God 10th Plane (9500 - 9999 posts)
 
Join Date: Oct 2006
Location: Pennsylvania, USA
Posts: 9,791 ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)  Folding Points: 127430 Folding Title: Super Ultimate Folder - Level 1Folding Points: 127430 Folding Title: Super Ultimate Folder - Level 1Folding Points: 127430 Folding Title: Super Ultimate Folder - Level 1Folding Points: 127430 Folding Title: Super Ultimate Folder - Level 1Folding Points: 127430 Folding Title: Super Ultimate Folder - Level 1Folding Points: 127430 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 2 Months 3 Weeks 14 h 53 m 20 sec
Reputation Power: 6112
As long as all your pages validate the session and your login check sets the session cookie, #1 should be fine.

Reply With Quote
Closed Thread

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > Strategies for "Remember Me" Username/Password

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap