Skip to main content
Known Participant
September 24, 2006
Question

LOGIN

  • September 24, 2006
  • 3 replies
  • 305 views
Hi to all,

I need to disappear the login link when a customer logins and display a logout link at the same place and vice versa....in PHP platform integrated with dreamweaver,

Thanks in advance.
This topic has been closed for replies.

3 replies

Inspiring
September 26, 2006
prashi123 wrote:
> Sir could u let me know how to do it PHP pls.....

if (isset($_SESSION['MM_Username'])) {
// logout link goes here
}
else {
// login link goes here
}

--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/
prashi123Author
Known Participant
September 26, 2006
Hi,

Sir could u let me know how to do it PHP pls.....
Inspiring
September 25, 2006
Hi Prashi,

If you've using Dreamweaver's standard log-in behaviours, then this should
work:

<%If Session("MM_Username") <> "" Then%>
<a href="<%= MM_Logout %>">Log Out Link</a>
<%ELSE%>
<a href="loginpage.asp">Log In Link</a>
<%End If%>

You will need to apply the "Log Out User" behaviour to the initial Log Out
Link and, in this example, I have simply linked to my login page for the
"login" link.

Hope this helps,
Regards
nath.

"prashi123" <webforumsuser@macromedia.com> wrote in message
news:ef5c69$sto$1@forums.macromedia.com...
> Hi to all,
>
> I need to disappear the login link when a customer logins and display a
> logout link at the same place and vice versa....