Set session variable automatically
Using the security assist wizard, how do I set a session variable (ID) for use by the re-direct page. It needs to capture the record variable after the insert.
Nick
Using the security assist wizard, how do I set a session variable (ID) for use by the re-direct page. It needs to capture the record variable after the insert.
Nick
I noticed a reference in an older thread to an option in DataAssist but was unable to find it, it would be nice to know which "Screen" has the option and if it can be applied to SecurityAssist rendered pages.
Nick
If you are using DataAssist for the insert, then the ID is automatically stored in the session for you with the name specified in the insert interface.
If you are using the standard DW insert, then you can apply the "Set session value" server behavior and set a session variable to the value: <?php ecno(mysql_insert_id()) ?>
The tricky part here would be that you would have to move the set session value code below the insert code, and couldn't use the insert redirect to redirect since it would leave the page before the session variable was set, so you would probably have to hand-code a redirect. Really the best way is to use DataAssist and the session variable will already be set for you.
Thanks!
Using ADTb I used to use :
$_SESSION['ses_email'] = $tNG->getColumnValue('EMail');
$_SESSION['kt_login_id'] = $tNG->getPrimaryKeyValue();
as a custom trigger after an insert and could use it on any insert form, do you have a similar feature?
Nick
If you are using DataAssist for the insert, then the ID is automatically stored in the session for you with the name specified in the insert interface.
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.