close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Store and Update The Number of Times Registered Users Login to access contents.

Thread began 7/10/2012 9:34 pm by Mysite07430650 | Last modified 7/17/2012 3:10 pm by Mysite07430650 | 1760 views | 10 replies


Originally Said By: Jason Byrnes
  The login behavior is set to redirect to the index.php page on login success, this redirect will happen before the update record behavior can take place.

You need to edit the authenticate user behavior and set it to not go anywhere on login success.

add the redirect to the index.php page to the update record behavior.  

Thanks Jason for the reply.

I did get rid of the redirect to index.php as advised and this served to update the LoginCount Column and LoginDate column respectively. The only problem is that the LoginCount value is static and no matter how many times I log in, logout and repeated all over again, the LoginCount yields a static value of 1 and does not reflect the number of times a user logs in.
In essence, this code <?php echo $row_rsLoggeduser['LoginCount']+1; ?> outputs the static value of 1 in the LoginCount Column. If it is changed to say 10 i.e., <?php echo $row_rsLoggeduser['LoginCount']+10; ?>, an output value of 10 is registered in the LoginCount Column of the user table no matter how many times a person logs in.

I was wondering if the LoginCount column needs to be defined or set so that it automatically increments by a value of 1 every time registered users log in. If that is indeed the case, how do I go about it and more precisely can you please let me know the code needed to achieve this.

Thank you for your help.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...