close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Security Assist - custom redirect?

Thread began 12/14/2010 3:31 pm by omar419219 | Last modified 12/15/2010 12:03 pm by Jason Byrnes | 1240 views | 3 replies |


Security Assist - custom redirect?

I have a database of five users.


username: alpha
username: beta
username: gamma

they each have their own dedicated "dashboard: page within the same directory as the rest of the Secuirty Assist created PHP files


I have also created a field within the database called "userpage" so each record has a corresponding value

record 1:
username: alpha
userpage: alpha.php

What I need is to customize the log in page so upon successful log in, the user gets redirected to their corresponding "dashboard" page.

the line I think I need to edit is within Log in page line 14 (Im guessing)

"successRedirect" => "users_Profile.php",

IDEALLY the value/url should be a result of something like: username+."php"
if that is not possible, it could be the corresponding value of the field "userpage"


Does this make sense? Is this possible?

Sign in to reply to this post

Jason ByrnesWebAssist

you will need to hand code the logic to accomplish this.

create a new blank page called something like redir.php and set the login redirect to go to the redir.php page:
"successRedirect" => "redir.php",

On the login page, you can double click the authenticate user serer behavior, go to the third page of the authenticate user behavior and set the user name column to be stored in a session variable, the new session variable will use the same name as the column, so if the column is "username" the session variable will be too.

then on the redir.php page, you can hand code a header redirect to use the username session:


if(isset($_SESSION['username']) && $_SESSION['username'] != "") {
header("Location: ".$_SESSION['username']."php");
Sign in to reply to this post


Try it and got it to work! One small error (But I think this way due to may initial explanation) I had to change your code from

header("Location: ".$_SESSION['username']."php");


header("Location: ".$_SESSION['username']".php");

(put period inside the quotes so the URL string would generate correctly. i..e alphapage.php VS alphapagepphp)


Sign in to reply to this post

Jason ByrnesWebAssist

ok, glad to hear it is working.

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





Ease of use


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