Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

LOGIN

New Here ,
Sep 24, 2006 Sep 24, 2006
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.
TOPICS
Server side applications
301
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 25, 2006 Sep 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....


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 26, 2006 Sep 26, 2006
Hi,

Sir could u let me know how to do it PHP pls.....
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 26, 2006 Sep 26, 2006
LATEST
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/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines