Forums
This topic is locked
can u help me with my logins/logouts and register
Posted 07 Feb 2002 22:09:46
1
has voted
07 Feb 2002 22:09:46 salman khan posted:
i have a created a login system via ultradev, it has login, logout and register show region behaviour applied, but when my user gets registered the next page shows only logout link cause he has logged in but the next pages the user goes to has register link showing thats not right because user has registered and should only be showing logout. I wonder if its to do with some sort of cookies. i want only logout showing when logged in and register showing when not logged in.look forward to hearing from you experts. email:
with regards
salman.
Replies
Replied 07 Feb 2002 22:21:41
07 Feb 2002 22:21:41 Viktor Farcic replied:
Assuming you're using ASP....
UD LogIn behavior creates Session called MM_Username every time user logs in. You can use this to show/hide parts of the page. Something like:
<% If Session("MM_Username"
<> "" Then %>
Insert here something that will be displayed if user IS loged in
<% Else %>
Insert here something that will be displayed if user ISN'T loged in
<% End If %>
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
i have a created a login system via ultradev, it has login, logout and register show region behaviour applied, but when my user gets registered the next page shows only logout link cause he has logged in but the next pages the user goes to has register link showing thats not right because user has registered and should only be showing logout. I wonder if its to do with some sort of cookies. i want only logout showing when logged in and register showing when not logged in.
look forward to hearing from you experts. email:
with regards
salman.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Viktor Farcic
TalkZone Manager
UD LogIn behavior creates Session called MM_Username every time user logs in. You can use this to show/hide parts of the page. Something like:
<% If Session("MM_Username"
Insert here something that will be displayed if user IS loged in
<% Else %>
Insert here something that will be displayed if user ISN'T loged in
<% End If %>
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
i have a created a login system via ultradev, it has login, logout and register show region behaviour applied, but when my user gets registered the next page shows only logout link cause he has logged in but the next pages the user goes to has register link showing thats not right because user has registered and should only be showing logout. I wonder if its to do with some sort of cookies. i want only logout showing when logged in and register showing when not logged in.
look forward to hearing from you experts. email:
with regards
salman.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Viktor Farcic
TalkZone Manager
Replied 09 Feb 2002 00:44:13
09 Feb 2002 00:44:13 salman khan replied:
thank you i'll try that.
with regards
salman.
with regards
salman.