[FX.php List] Storing logins for clients
Bob Patin
bob at patin.com
Fri Oct 5 14:12:27 MDT 2012
Just for grins, I tried using this to set 2 cookies:
$username = "Bob Patin";
$password = "test";
// Set a cookie that expires in 30 days
setcookie("username",$username, time()+3600*720);
setcookie("password",$password, time()+3600*720);
... but when I tried to retrieve them:
echo $_COOKIE['username'].' -- '.$_COOKIE['password'];
I got nothing...
I don't think I'll store passwords this way, but if this is easy enough to do for usernames, I may add this for this client, unless there's a better way that's not too time-consuming.
Thanks,
Bob Patin
Longterm Solutions LLC
bob at longtermsolutions.com
615-333-6858
http://www.longtermsolutions.com
FileMaker 9, 10 & 11 Certified Developer
Member of FileMaker Business Alliance and FileMaker TechNet
--
Twitter: bobpatin
Google+: http://www.longtermsolutions.com/plus
AIM: longterm1954
iChat: bobpatin
--
Expert FileMaker Consulting
FileMaker Hosting for all versions of FileMaker
On Oct 5, 2012, at 3:07 PM, Bob Patin <bob at patin.com> wrote:
> One of my clients is asking if I can 'store' their logins (or at least their usernames) like many sites do.
>
> Upon searching, I saw that using setcookie() was frowned upon, for obvious reasons; have any of you done this, and if so, do you have any code you could share?
>
> Thanks,
>
> Bob Patin
> Longterm Solutions LLC
> bob at longtermsolutions.com
> 615-333-6858
> http://www.longtermsolutions.com
> FileMaker 9, 10 & 11 Certified Developer
> Member of FileMaker Business Alliance and FileMaker TechNet
> --
> Twitter: bobpatin
> Google+: http://www.longtermsolutions.com/plus
> AIM: longterm1954
> iChat: bobpatin
> --
> Expert FileMaker Consulting
> FileMaker Hosting for all versions of FileMaker
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list