Forums
This topic is locked
Displaying user name after login page?
Posted 03 Dec 2001 12:01:59
1
has voted
03 Dec 2001 12:01:59 Henrik Sandeberg posted:
I wonder how to use the session variable to see yhe user name after he/she has login to the site., Like UDZONEs first page? Welcome blablabla. I have a NT4 IIS4 server,Replies
Replied 03 Dec 2001 12:37:16
03 Dec 2001 12:37:16 Owen Eastwick replied:
If you are using UD4's Login server behavior simply put the following code within the page:
<% = Session("MM_Username"
%>
If you want greet the user with thier real name, first set up a recordset on the page with an SQL statement something like:
SELECT YourUserFirstNameField FROM YourUserTable WHERE YourUserNameField = Session("MM_Username"
Then on the page:
Welcome back <% = YourRecordsetName.Fields.Item("YourUserFirstNameField"
.value %>
Regards
Owen.
Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
<% = Session("MM_Username"
If you want greet the user with thier real name, first set up a recordset on the page with an SQL statement something like:
SELECT YourUserFirstNameField FROM YourUserTable WHERE YourUserNameField = Session("MM_Username"
Then on the page:
Welcome back <% = YourRecordsetName.Fields.Item("YourUserFirstNameField"
Regards
Owen.
Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
Replied 03 Dec 2001 13:16:40
03 Dec 2001 13:16:40 Henrik Sandeberg replied:
Thnx,, i will try it...
Replied 03 Dec 2001 13:40:09
03 Dec 2001 13:40:09 Henrik Sandeberg replied:
The <% = Session("MM_Username"
%>, should i put it in the main page or in the login page?, i get a BOF or EOF error, i can send you the code on the two pages i have!
Replied 03 Dec 2001 13:55:29
03 Dec 2001 13:55:29 Henrik Sandeberg replied:
Fixed it.!!
Replied 15 Feb 2002 21:33:03
15 Feb 2002 21:33:03 Serge Chabert replied:
hello, i have read the technical exchange and i would like to know where to put which part of the code.
Let me explain. which part to put on the login page and which part to put on the main page.
<img src=../images/dmxzone/forum/icon_smile_blush.gif border=0 align=middle>
That would be very useful to me.
THANKS
Let me explain. which part to put on the login page and which part to put on the main page.
<img src=../images/dmxzone/forum/icon_smile_blush.gif border=0 align=middle>
That would be very useful to me.
THANKS