success message
Hey Ray
On the attached page, I have a success message (line 384) which should show if the password has been changed successfully. the message is not showing and not sure what I have missed?
Thanks
Jamie
Hey Ray
On the attached page, I have a success message (line 384) which should show if the password has been changed successfully. the message is not showing and not sure what I have missed?
Thanks
Jamie
Try updating this:
<?php if (isset($_POST['Confirm']) && $WADAlogins->getColumnVal("UserPassword") != $_POST['Confirm']) {
$_SESSION['PasswordChanged'] = true;
} ?>
to this:
<?php if (isset($_POST['Confirm']) && $WADAlogins->getColumnVal("UserPassword") != $_POST['Confirm']) {
@session_start();
$_SESSION['PasswordChanged'] = true;
session_commit();
} ?>
The new DataAssist code is "better" about closing the session when it isn't being used since leaving the session open can cause delays in asynchronous page requests such as AJAX. What that means is that the session might be closed after use automatically and needs to be re-started before a new variable can be stored.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.