HighDots Forums  

User active question

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss User active question in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mcrob
 
Posts: n/a

Default User active question - 09-01-2004 , 01:21 AM






Ok I use the server behaviors in dreamweaver mx 2004. I am having a problem. In
my mainpage I want too display this....

- If the user hasnt been logged in, show this information
- else
- if the user has been logged in, show this information

In the server behaviors the only way that you can display a "welcome back
user" text is if the user is logged in and IF you have the "restrict access too
page" option. But I dont want too set the restrict access too page option
because if the user is not logged it, it will redirect them too a another page
and I dont want that. How can I do that? Like I downloaded this behavior where
I can set down sessions, if the session is active it wll show this, otherwise
show this. Does anyone have any suggestions.

RoB


Reply With Quote
  #2  
Old   
Kindler Chase
 
Posts: n/a

Default Re: User active question - 09-01-2004 , 02:23 AM






Mcrob wrote:
Quote:
Ok I use the server behaviors in dreamweaver mx 2004. I am having a
problem. In my mainpage I want too display this....

- If the user hasnt been logged in, show this information
- else
- if the user has been logged in, show this information

In the server behaviors the only way that you can display a "welcome
back user" text is if the user is logged in and IF you have the
"restrict access too page" option. But I dont want too set the
restrict access too page option because if the user is not logged it,
it will redirect them too a another page and I dont want that. How
can I do that? Like I downloaded this behavior where I can set down
sessions, if the session is active it wll show this, otherwise show
this. Does anyone have any suggestions.

RoB
Assuming you're using ASP, use the default user name session from DW:

<% If Session("MM_Username") & "" <> "" Then %>
Show stuff where user is logged in
<% Else %>
Show stuff where user is not logged in
<% End If %>

--
kindler chase
http://www.ncubed.com
Home of SuperInvoice: The Online Invoicing Application.
Organize your billing process and impress your clients.

news://news.ncubed.com/support
n3 Support Group




Reply With Quote
  #3  
Old   
Mcrob
 
Posts: n/a

Default Re: User active question - 09-01-2004 , 11:33 AM



No No Im using PHP. Sorry I should of said that from before

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.