<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Making A Cool Login System With PHP, MySQL &amp; jQuery</title>
	<atom:link href="http://tutorialzine.com/2009/10/cool-login-system-php-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://tutorialzine.com/2009/10/cool-login-system-php-jquery/</link>
	<description>Web Development Tutorials &#38; Resources</description>
	<lastBuildDate>Tue, 07 Feb 2012 23:23:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Mikl</title>
		<link>http://tutorialzine.com/2009/10/cool-login-system-php-jquery/#comment-12147</link>
		<dc:creator>Mikl</dc:creator>
		<pubDate>Mon, 18 Oct 2010 21:10:32 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=450#comment-12147</guid>
		<description>Anyone can share a &quot;change password page&quot;? I need it for &lt;a href=&quot;http://manestate.com&quot; rel=&quot;nofollow&quot;&gt;manestate.com&lt;/a&gt;. thx.</description>
		<content:encoded><![CDATA[<p>Anyone can share a &#8220;change password page&#8221;? I need it for <a href="http://manestate.com" rel="nofollow">manestate.com</a>. thx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mikl</title>
		<link>http://tutorialzine.com/2009/10/cool-login-system-php-jquery/#comment-11499</link>
		<dc:creator>mikl</dc:creator>
		<pubDate>Sun, 26 Sep 2010 00:39:19 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=450#comment-11499</guid>
		<description>I liked this code and I use it in manestate.com
I am giving here the forgot/reset password script.
I started from the code here http://www.phpeasystep.com/phptu/21.html and modified it. I hope it helps somebody.

1. the html




&lt;strong&gt;Enter your email : &lt;/strong&gt;









2. the form processing here

&lt;?php

$host=&quot;localhost&quot;; // Host name - update all those fields
$username=&quot;root&quot;; // Mysql username
$password=&quot;*******&quot;; // Mysql password
$db_name=&quot;coollogin&quot;; // Database name

//Connect to server and select databse.
mysql_connect(&quot;$host&quot;, &quot;$username&quot;, &quot;$password&quot;)or die(&quot;cannot connect to server&quot;);
mysql_select_db(&quot;$db_name&quot;)or die(&quot;cannot select DB&quot;);

// value sent from form
$email_to=$_POST[&#039;email_to&#039;];
// table name
$tbl_name=tz_members;

// retrieve password from table where e-mail is equal
$sql=&quot;SELECT usr, pass, regIP FROM $tbl_name WHERE email=&#039;$email_to&#039;&quot;;
$result=mysql_query($sql);

// if found this e-mail address, row must be 1 row
// keep value in variable name &quot;$count&quot;
$count=mysql_num_rows($result);

// compare if $count =1 row
if($count==1)
  {
  $rows=mysql_fetch_array($result);

  $your_username=$rows[&#039;usr&#039;];
  $your_password=$rows[&#039;pass&#039;];
  $your_ip=$rows[&#039;regIP&#039;];
  $pass = substr(md5($your_ip.microtime().rand(1,100000)),0,6);  // create a new pass
  mysql_query(&quot;	UPDATE tz_members SET pass=&#039;&quot;.md5($pass).&quot;&#039; WHERE email=&#039;&quot;.$email_to.&quot;&#039;&quot;); // update the db

  // ---------------- SEND MAIL FORM ----------------
  // send e-mail to ...
  $to=$email_to;

  // Your subject
  $subject=&quot;Your password here&quot;;

  // From
  $header=&quot;from: your name &quot;;

  // Your message
  $messages= &quot;Your password for login to manestate.com - My Properties has been reset.\r\n&quot;;
  $messages.=&quot;The new password is $pass \r\n&quot;;
  $messages.=&quot;Mikhael Lerman \r\n&quot;;

  // send email
  $sentmail = mail($to,$subject,$messages,$header);

  mysql_free_result($result);
  }

// else if $count not equal 1
else if ($count==0)
  echo &quot;Your email was not found in our database&quot;;
else
  echo &quot;More than one (&quot;.$count.&quot;) email records was found in our database, please contact the administrator.&quot;;

// if your email succesfully sent
if($sentmail)
  {
  echo &quot;The new password has been reset and sent to the email on record.&quot;;
  }
else 
  {
  echo &quot;Cannot send the password to this e-mail address&quot;;
  }

?&gt;</description>
		<content:encoded><![CDATA[<p>I liked this code and I use it in manestate.com<br />
I am giving here the forgot/reset password script.<br />
I started from the code here http://www.phpeasystep.com/phptu/21.html and modified it. I hope it helps somebody.</p>
<p>1. the html</p>
<p><strong>Enter your email : </strong></p>
<p>2. the form processing here</p>
<p>&lt;?php</p>
<p>$host=&quot;localhost&quot;; // Host name &#8211; update all those fields<br />
$username=&quot;root&quot;; // Mysql username<br />
$password=&quot;*******&quot;; // Mysql password<br />
$db_name=&quot;coollogin&quot;; // Database name</p>
<p>//Connect to server and select databse.<br />
mysql_connect(&quot;$host&quot;, &quot;$username&quot;, &quot;$password&quot;)or die(&quot;cannot connect to server&quot;);<br />
mysql_select_db(&quot;$db_name&quot;)or die(&quot;cannot select DB&quot;);</p>
<p>// value sent from form<br />
$email_to=$_POST[&#039;email_to&#039;];<br />
// table name<br />
$tbl_name=tz_members;</p>
<p>// retrieve password from table where e-mail is equal<br />
$sql=&quot;SELECT usr, pass, regIP FROM $tbl_name WHERE email=&#039;$email_to&#039;&quot;;<br />
$result=mysql_query($sql);</p>
<p>// if found this e-mail address, row must be 1 row<br />
// keep value in variable name &quot;$count&quot;<br />
$count=mysql_num_rows($result);</p>
<p>// compare if $count =1 row<br />
if($count==1)<br />
  {<br />
  $rows=mysql_fetch_array($result);</p>
<p>  $your_username=$rows[&#039;usr&#039;];<br />
  $your_password=$rows[&#039;pass&#039;];<br />
  $your_ip=$rows[&#039;regIP&#039;];<br />
  $pass = substr(md5($your_ip.microtime().rand(1,100000)),0,6);  // create a new pass<br />
  mysql_query(&quot;	UPDATE tz_members SET pass=&#039;&quot;.md5($pass).&quot;&#039; WHERE email=&#039;&quot;.$email_to.&quot;&#039;&quot;); // update the db</p>
<p>  // &#8212;&#8212;&#8212;&#8212;&#8212;- SEND MAIL FORM &#8212;&#8212;&#8212;&#8212;&#8212;-<br />
  // send e-mail to &#8230;<br />
  $to=$email_to;</p>
<p>  // Your subject<br />
  $subject=&quot;Your password here&quot;;</p>
<p>  // From<br />
  $header=&quot;from: your name &#8220;;</p>
<p>  // Your message<br />
  $messages= &#8220;Your password for login to manestate.com &#8211; My Properties has been reset.\r\n&#8221;;<br />
  $messages.=&#8221;The new password is $pass \r\n&#8221;;<br />
  $messages.=&#8221;Mikhael Lerman \r\n&#8221;;</p>
<p>  // send email<br />
  $sentmail = mail($to,$subject,$messages,$header);</p>
<p>  mysql_free_result($result);<br />
  }</p>
<p>// else if $count not equal 1<br />
else if ($count==0)<br />
  echo &#8220;Your email was not found in our database&#8221;;<br />
else<br />
  echo &#8220;More than one (&#8220;.$count.&#8221;) email records was found in our database, please contact the administrator.&#8221;;</p>
<p>// if your email succesfully sent<br />
if($sentmail)<br />
  {<br />
  echo &#8220;The new password has been reset and sent to the email on record.&#8221;;<br />
  }<br />
else<br />
  {<br />
  echo &#8220;Cannot send the password to this e-mail address&#8221;;<br />
  }</p>
<p>?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://tutorialzine.com/2009/10/cool-login-system-php-jquery/#comment-9816</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Mon, 16 Aug 2010 19:36:22 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=450#comment-9816</guid>
		<description>Hi All, I have a problem with cookies, 
Basically the script is working perfectly, but when I try to log off, I remain logged in unless I manually delete browser cookies.
Looking at the php between lines 16 and 37, I think will give the answer. I haven&#039;t changed anything I don&#039;t think, but for some reason logging off isn&#039;t clearing the session.
Any pointers would be much appreciated. 

Cheers

Paul</description>
		<content:encoded><![CDATA[<p>Hi All, I have a problem with cookies,<br />
Basically the script is working perfectly, but when I try to log off, I remain logged in unless I manually delete browser cookies.<br />
Looking at the php between lines 16 and 37, I think will give the answer. I haven&#8217;t changed anything I don&#8217;t think, but for some reason logging off isn&#8217;t clearing the session.<br />
Any pointers would be much appreciated. </p>
<p>Cheers</p>
<p>Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rohan</title>
		<link>http://tutorialzine.com/2009/10/cool-login-system-php-jquery/#comment-9610</link>
		<dc:creator>Rohan</dc:creator>
		<pubDate>Thu, 12 Aug 2010 20:58:08 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=450#comment-9610</guid>
		<description>FOR ALL GETTING WRONG USERNAME/PASSWORD Error

Guys, there seems to be an issue with .md5 encryption used, remove that and it works all fine!!!</description>
		<content:encoded><![CDATA[<p>FOR ALL GETTING WRONG USERNAME/PASSWORD Error</p>
<p>Guys, there seems to be an issue with .md5 encryption used, remove that and it works all fine!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://tutorialzine.com/2009/10/cool-login-system-php-jquery/#comment-7771</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Sat, 17 Jul 2010 03:50:25 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=450#comment-7771</guid>
		<description>As you can tell I am learning. I found my issue in php.ini having to do with &quot;session.save_path&quot; once I defined that the script worked fully.</description>
		<content:encoded><![CDATA[<p>As you can tell I am learning. I found my issue in php.ini having to do with &#8220;session.save_path&#8221; once I defined that the script worked fully.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://tutorialzine.com/2009/10/cool-login-system-php-jquery/#comment-7765</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Sat, 17 Jul 2010 02:39:37 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=450#comment-7765</guid>
		<description>ok I figured out where to find php errors. I looked through this page and am not sure if the problem was I had previously used a PHP script with Session Start. is there anything you need to get rid of the first session start other than running a destroy command? I removed the other script from my site.

The error is (note I edited the path a little just for privacy):
PHP Warning:  session_start() [&lt;a href=&#039;function.session-start&#039; rel=&quot;nofollow&quot;&gt;function.session-start&lt;/a&gt;]: open(/var/php_sessions/) failed: No such file or directory (2) in /hermes/bosweb/web256/b2562/demo/demo.php on line 16 
PHP Warning:  Unknown: open(/var/php_sessions) failed: No such file or directory (2) in Unknown on line 0 
PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions) in Unknown on line 0 



Thanks for any help you can provide.</description>
		<content:encoded><![CDATA[<p>ok I figured out where to find php errors. I looked through this page and am not sure if the problem was I had previously used a PHP script with Session Start. is there anything you need to get rid of the first session start other than running a destroy command? I removed the other script from my site.</p>
<p>The error is (note I edited the path a little just for privacy):<br />
PHP Warning:  session_start() [<a href='function.session-start' rel="nofollow">function.session-start</a>]: open(/var/php_sessions/) failed: No such file or directory (2) in /hermes/bosweb/web256/b2562/demo/demo.php on line 16<br />
PHP Warning:  Unknown: open(/var/php_sessions) failed: No such file or directory (2) in Unknown on line 0<br />
PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions) in Unknown on line 0 </p>
<p>Thanks for any help you can provide.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tAz</title>
		<link>http://tutorialzine.com/2009/10/cool-login-system-php-jquery/#comment-6963</link>
		<dc:creator>tAz</dc:creator>
		<pubDate>Tue, 29 Jun 2010 15:54:52 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=450#comment-6963</guid>
		<description>This is a great script... that doesn&#039;t work out of the box... so it&#039;s a &quot;project&quot; not a &quot;tutorial&quot;...

Not really a big problem for those with intermediate PHP skills but way out there for the new guys...

Keep the tutorials coming please - but such large numbers of errors really distracts from the undoubted usefulness of this script.</description>
		<content:encoded><![CDATA[<p>This is a great script&#8230; that doesn&#8217;t work out of the box&#8230; so it&#8217;s a &#8220;project&#8221; not a &#8220;tutorial&#8221;&#8230;</p>
<p>Not really a big problem for those with intermediate PHP skills but way out there for the new guys&#8230;</p>
<p>Keep the tutorials coming please &#8211; but such large numbers of errors really distracts from the undoubted usefulness of this script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wp customization</title>
		<link>http://tutorialzine.com/2009/10/cool-login-system-php-jquery/#comment-6769</link>
		<dc:creator>wp customization</dc:creator>
		<pubDate>Tue, 22 Jun 2010 11:56:44 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=450#comment-6769</guid>
		<description>Hi..,

 This is a fantastic script, its very help to me..
Good job you have been done.:-)
Thanks a lot..!</description>
		<content:encoded><![CDATA[<p>Hi..,</p>
<p> This is a fantastic script, its very help to me..<br />
Good job you have been done.:-)<br />
Thanks a lot..!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://tutorialzine.com/2009/10/cool-login-system-php-jquery/#comment-6496</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Tue, 15 Jun 2010 23:27:09 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=450#comment-6496</guid>
		<description>Brilliant tutorial, helped me a lot :)</description>
		<content:encoded><![CDATA[<p>Brilliant tutorial, helped me a lot :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wyatt</title>
		<link>http://tutorialzine.com/2009/10/cool-login-system-php-jquery/#comment-5943</link>
		<dc:creator>Wyatt</dc:creator>
		<pubDate>Mon, 31 May 2010 13:11:20 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=450#comment-5943</guid>
		<description>Could someone help me out with a forget password script?
It is really nice to have......

thx.

PS: Martin thanks again for this wonderfull thing</description>
		<content:encoded><![CDATA[<p>Could someone help me out with a forget password script?<br />
It is really nice to have&#8230;&#8230;</p>
<p>thx.</p>
<p>PS: Martin thanks again for this wonderfull thing</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using apc
Object Caching 355/356 objects using apc
Content Delivery Network via cdn.tutorialzine.com

Served from: tutorialzine.com @ 2012-02-08 14:21:20 -->
