View Full Version : Help with Welcome Page
Walikan
04-29-2009, 04:29 AM
I have generated Registration page, login page and a Welcome page. If my client login, the client is redirected to the Welcome page. I would like to add to the Welcome page a script such that if the client successfully login, the client's First Name will appear at the top of the Welcome page such as "HELLO First Name" or "Welcome First Name". Any help?
Thanks in advance
Ray Borduin
04-29-2009, 07:55 AM
The easiest way is to update your login page server behavior and add the first name as a session variable to be set at login. Then you can drag and drop it from bindings on any page where the user will be logged in.
Walikan
04-29-2009, 09:43 AM
Thanks alot Ray. I am new to SA. how do I update the login page server behavior and how do I set the first name as a session variable at login? Can you please help me with a step by step procedure to achive this?
Thank you.
Ray Borduin
04-29-2009, 09:53 AM
Double click on the authenticate user server behavior and go to the last page of the wizard where you can set the session variables. By default it is just the userID field.
pbennett348068
05-11-2009, 03:00 PM
The easiest way is to update your login page server behavior and add the first name as a session variable to be set at login. Then you can drag and drop it from bindings on any page where the user will be logged in.
I tried this, setting a session var for my DB field "firstname" drag/drop does not display the firstname on log in. I tried setting up a small form with a text field and using the dynamic link to the session variable firstname with same result; still blank.
Help .... thanks!
Ray Borduin
05-12-2009, 08:55 AM
Make sure you have a call to
<?php
session_start();
?>
on top of the page before you try to show any session values on the page.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.