Forums

This topic is locked

Tutorial for User Login and Display Welcome ....

Posted 11 Sep 2005 17:07:10
1
has voted
11 Sep 2005 17:07:10 Kent Steelman posted:
Anyone know of a tutorial to allow the user to login then go to a page that displays the users first name in a Welcome "FirstName". I am coding in Dreamweaver MX using ASP. I am also using Dreamweaves Login and User Authentication Server Behaviors.

Kent

Wm. Kent Steelman

Replies

Replied 11 Sep 2005 22:01:14
11 Sep 2005 22:01:14 Dave Thomas replied:
all you need to do ken is create a session variable called 'MM_Username'. You can do this in the 'bindings' panel, click the + sign.
Dreamweaver will then use this as a focal point for whoever is logging into the site.

then on your page where people go when they log in, write a simple bit of code to display their name captured from the session variable u just created like. Or you can simply write the welcome bit and drag the session onto the page from the 'bindings' panel.

<pre id=code><font face=courier size=2 id=code> Hi there and welcome &lt;%= Session("MM_Username" %&gt; </font id=code></pre id=code>

regards

Dave Thomas
<b>DMX Zone Manager</b>
Replied 12 Sep 2005 00:05:47
12 Sep 2005 00:05:47 Kent Steelman replied:
Thanks that did the trick...

Wm. Kent Steelman

Reply to this topic