close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Success redirect to a dynamic data page

Thread began 1/31/2010 7:23 pm by stylishwebs346186 | Last modified 2/08/2010 5:57 pm by Eric Mittman | 1560 views | 5 replies |

stylishwebs346186

Success redirect to a dynamic data page

How do I set "successRedirect" to go to a dynamic data page tied to an id?

agent_Listings.php?id=

I have a list of real estate clients all with different listings. I need to give them access to only their list of properties tied to their id in the database. I'm using dataAssits and SecurityAssist.

Thanks

Sign in to reply to this post

Les CrowleyBeta Tester

I assume they're logging in to some sort of admin area.

I would use their unique session ID (that was created at login) and filter the recordset of properties with that.

This way they only get their own properties and you don't have to use a parameter in the url.

Sign in to reply to this post

stylishwebs346186

Hi Les,

Thank you for the information but I'm not clear on how I would "filter the recordset of properties" with the session id? Could you elaborate or provide a MySQL statement example.

Thanks, Bob

Sign in to reply to this post

Eric Mittman

In the Authenticate User server behavior you should be storing the UserID in a session variable.

Once you have done this on any page that a user is viewing records that you would like to restrict to only that user you could do so by filtering the recordset.

All you have to do is edit the recordset in DW, at the bottom of the interface is the filter options. Just select to filter on the UserID column and specify a session variable and put in the name for your session variable that holds the UserID.

Sign in to reply to this post

stylishwebs346186

Hi Eric,

Thanks for the info. I have not used session ID before and am still having problems making it work. Is there a tutorial for this task?

Thanks, Bob

Sign in to reply to this post

Eric Mittman

You should take a look at the support page for Security Assist and have a look at the getting started guide, solution recipes, and how to's to get a better idea of how the tool works for this type of thing.

securityassist/

In the SecurityAssist Authenticate User server behavior on the login page you can configure session variables to be set on the final step. In this final step of the server behavior you can add a session variable for any columns in your users table. This can be very useful if you want to store the userid, username, or email address in a session variable, then you can use these values on any page you want.

Sign in to reply to this post

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