close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Storing last user login date

Thread began 7/19/2011 11:40 pm by info266692 | Last modified 7/25/2011 7:50 am by info266692 | 6284 views | 7 replies

Jason ByrnesWebAssist

This sort of modification is not supported in the Solution packs, I can give you steps to follow, but cant really offer more help if you are not able to get this working.


first, open the bindings panel and expand the session collection, make sure there is a session in the bindings panel named UserID, if its not there, click the plus button , selct Session Variable and name it UserID to createt the binding.

now, on the login page, locate the two lines that redirect to the users_Profile page:

php:
"successRedirect" => "users_Profile.php",




and change them both to:

php:
"successRedirect" => "",




Now go to the server behaviors panel and click the plus button, select Data Assist, updare record, single record Update

in the update record dialog box, select the users table, set the key column to UserID

click the lightning bolt next to value and selcet the UserID session variable binding.

set the redirect to go to the users_Profile.php

on the second step, select your login_date column and enter the following code for the value:
[php]
<?php echo (date("Y-m-d h:m:s")); ?>
[php]


in the code, you will need to move the update record code so that it comes after the login user code.

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

Content

rating

Layout

rating

Ease of use

rating

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...