close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Redirect after log in

Thread began 12/03/2013 2:32 pm by jo271221 | Last modified 12/04/2013 10:48 am by Jason Byrnes | 5151 views | 3 replies |

jo271221

Redirect after log in

I want my user to be directed to an view/update page after successful log in. Currently I altered the success message with a link for clients and a link for assistants. I need to know how to append the url with ?UserID= - I don't know how to dynamically get or populate the user id here.

I tried this: <?php echo(isset($_GET['UserID'])?$_GET['UserID']:""); ?> and i also clicked on the parameter but did not see what I should use there.

Sign in to reply to this post

Jason ByrnesWebAssist

when the user logs in, your login page is storing the User ID in a session variable named:

SecurityAssist_UserID

dont pass that value in the URL though, use the session on the redirect page instead of using the URL variable.

so on the confirm agree page, you have the recordset filtering the UserID on the URL variable, instead set the recordset to filter using the SecurityAssist_UserID session variable.

Sign in to reply to this post

jo271221

Thank You!

Thank You! Here is the statement that I used and it is working.
<?php
mysql_select_db($database_PowerCMSConnection, $PowerCMSConnection);
$query_WADApcms2_users = "SELECT * FROM pcms2_users WHERE UserID = '".$_SESSION['SecurityAssist_UserID']."'";
$WADApcms2_users = mysql_query($query_WADApcms2_users, $PowerCMSConnection) or die(mysql_error());
$row_WADApcms2_users = mysql_fetch_assoc($WADApcms2_users);
$totalRows_WADApcms2_users = mysql_num_rows($WADApcms2_users);
?>

Sign in to reply to this post

Jason ByrnesWebAssist

yes, thats correct

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