Re: [PHP] vars between instantiate class...

2003-09-03 Thread jsWalter
Thanks. That is waht I needed to know! It works! Thanks Walter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] vars between instantiate class...

2003-09-03 Thread murugesan
Pass the value $this->_loginAttempts to the same page, assign it to $this->_loginAttempts and then increment it. -Murugesan "jsWalter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am trying to see how many times a person has tried to log in during a > session. > > the login scr

Re: [PHP] vars between instantiate class...

2003-09-03 Thread Raditha Dissanayake
hi, This is because the life time of an object is only as long as the page. Two solutions: store the login attempt count in the cookies. If you want persistent objects serialize them and save them to disk or db. and deserialize them again on the next page. This will have to be coupled with a u

[PHP] vars between instantiate class...

2003-09-03 Thread jsWalter
I am trying to see how many times a person has tried to log in during a session. the login script... $objAuth->start(); if ($objAuth->getAuth()) // is user logged in already ...display hello page... else ...display login page OK, so far so good. If the user punches in an