Forums

This topic is locked

Can you create a default Logged In / Out in DWMX?

Posted 19 years ago
1
has voted
19 years ago Malcolm X posted:
Can you create a default Logged In / Out in DWMX?

Hey there, I am working on a web site which allows users not log in after entering a user name and password.

At the top of the page I have a text called Login. Can Dreamweaver or any other extension or language, change the text to "Logout", only after you have logged in?


Thanks.


Mally.

Replies

Replied 19 years ago
19 years ago Dave Clarke replied:
<b>&lt;% if Session("MM_Username" &lt;&gt;"" then %&gt;</b>
Log-Out
<b>&lt;% End if %&gt;</b>

ASP|VBScript|IIS5.1|Access|WinXPPro & WinXPHome.
www.parrotlinks.com
www.reunite.co.uk
Replied 19 years ago
19 years ago Malcolm X replied:
Hey there Dave, thanks for your feed back.

I inserted that on a few of my pages but when I upload the page, the log out button will not work. Can not highlight or click on to it at all. Am I supposed to do something else with it?

Mally.
Replied 19 years ago
19 years ago Dave Clarke replied:
Sorry Malcolm

I assumed you had your log-out all set up and you just wanted to know how to hide it from people who weren't logged in.

In design view, highlight your log-out button and apply the Log-Out User server behaviour from the server behaviour panel.

ASP|VBScript|IIS5.1|Access|WinXPPro & WinXPHome.
www.parrotlinks.com
www.reunite.co.uk

Reply to this topic