Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

Redirect user after 'insert record' or 'log in'

Posted 18 Jul 2002 21:27:38
1
has voted
18 Jul 2002 21:27:38 Jesse Wiggins posted:
<font face='Verdana'>Need to find a way to redirect a user based the username submitted with the 'log in user' or 'insert record' behaviours. I can't seem to post variables to the next page when using these behaviours. </font id='Verdana'>

Replies

Replied 18 Jul 2002 22:16:43
18 Jul 2002 22:16:43 aegis kleais replied:
If you're using the DW login server behavior, macromedia sets a Session variable called MM_Username depending on the username logged in. So you can do this:

&lt;%
loggedInUser = Session("MM_Username"
if loggedInUser = "bob" then
Response.Redirect("bob_page.asp"
else if loggedInUser = "jerry" then
Response.Redirect("jerry_page.asp"
else
Response.Redirect("who_are_you.asp"
end if
%&gt;

Aegis Kleais
New Media Web Developer
(DWMX : IIS5.1 : SQL2K : WXP : ASP[VB/JS])
Replied 18 Jul 2002 22:34:31
18 Jul 2002 22:34:31 Jesse Wiggins replied:
<font face='Verdana'>Actually I need to pass the value of their username to another page outside my site (ie. www.whatever.com?custid=userid). I need to be able to pass their username to this page. I would love to do it when they fill out the sign up form (which is a UD 'insert record' behaviour) or as a hyperlink from the 'insert record' confirmation page.</font id='Verdana'>

Edited by - jezzzzy on 18 Jul 2002 22:35:31
Replied 19 Jul 2002 01:15:49
19 Jul 2002 01:15:49 aegis kleais replied:
Well, if you want to send the Username, just do so by sending it in the URL . Then his page can parse for it.

ie,

&lt;%
un = Session(MM_Username)
Response.Redirect ("www.domain.com/page.asp?username=" & un)
%&gt;

Aegis Kleais
New Media Web Developer
(DWMX : IIS5.1 : SQL2K : WXP : ASP[VB/JS])

Reply to this topic