Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PHP] Secure Logins?
#4
(08-26-2010, 09:44 AM)Iarkey Wrote: store the username and some sort of session key that expires every X minutes and only works if the current ip matches last login ip.

Use a cookie.

in the log in block put this
PHP Code:
$x 3600// time to expire
setcookie("IP"$_SERVER['REMOTE_ADDR'], time()+$x); 

you can check if they match by doing this
PHP Code:
if($_COOKIE['IP'] == $_SERVER['REMOTE_ADDR']){
//do stuff
}else
die(); 
(11-23-2010, 08:40 PM)Guest Wrote: Alright, did the 'Support' get removed from SupportForums?
You're not a good Emotional Helper.
Reply


Messages In This Thread
[PHP] Secure Logins? - by `P R O D I G Y™ - 08-25-2010, 02:51 AM
RE: [PHP] Secure Logins? - by ndee - 08-25-2010, 06:13 AM
RE: [PHP] Secure Logins? - by Iarkey - 08-26-2010, 09:44 AM
RE: [PHP] Secure Logins? - by Proof - 08-26-2010, 01:49 PM
RE: [PHP] Secure Logins? - by Iarkey - 08-26-2010, 03:24 PM
RE: [PHP] Secure Logins? - by Proof - 08-26-2010, 03:52 PM
RE: [PHP] Secure Logins? - by Iarkey - 08-26-2010, 04:15 PM
RE: [PHP] Secure Logins? - by Proof - 08-26-2010, 05:30 PM
RE: [PHP] Secure Logins? - by Iarkey - 08-26-2010, 06:22 PM
RE: [PHP] Secure Logins? - by Proof - 08-26-2010, 11:42 PM
RE: [PHP] Secure Logins? - by Chimi - 12-06-2010, 01:31 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PHP Framework List: An Ultimate Guide to 102 PHP Frameworks for Web Developers tk-hassan 0 792 07-27-2020, 11:26 PM
Last Post: tk-hassan
  PHP Video Tutorials (PHP For Beginners) Eleqtriq 4 3,314 10-10-2011, 01:00 PM
Last Post: Greyersting

Forum Jump:


Users browsing this thread: 1 Guest(s)