Forums
This topic is locked
Login User and redirect to private Page
Posted 12 Dec 2001 19:55:02
1
has voted
12 Dec 2001 19:55:02 Anton Sutterlueti posted:
Hi i have a question how can i do that in UD 4, i setup diffrent Users each of the user has his own page where he can view information that i put in, my question is now how can i do that, is there any tutorial or example, where a user types in his username and password and is redirected to the right homepagethx for the help ToXiT
Replies
Replied 13 Dec 2001 00:43:15
13 Dec 2001 00:43:15 Dennis van Galen replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Hi i have a question how can i do that in UD 4, i setup diffrent Users each of the user has his own page where he can view information that i put in, my question is now how can i do that, is there any tutorial or example, where a user types in his username and password and is redirected to the right homepage
thx for the help ToXiT
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
I'll try...
Make a page, name it loggedin.asp
give some layout and save it for now
Make a page, name it login.htm
create on this page, after the layout you want is in place, where you want the login fields, a FORM...
Leave settings as is and click on FORM tag in the page window bottom.
insert a table, two columns 3 rows INSIDE the form.
left column holds text's Username, Password and Submit.
Right column holds three FORM Item's, two text fields and one submit button.
Label the fields properly, top textfield is called Username, the bottom one is called password.
Select the submit button and (if your dbase is properly setup with table that holds username and password) click in the server-behavior window (CTRL+F9 I believe) on the + (plus) sign, move down and select Authenticate User, login.
this window is pretty easy, you select the earlier created page as where to go when login is successfull and the login.html page if it fails.
You set the fields to check the proper dbase records (i assume you know how UDev works with dynamic data), password to password, username to username fields.
when everything is set, save page and open the logged in page.
do a server behavior, authenticate user -> Redirect if not logged in.
set that to authenticate username / password, redirect to login.html if not logged in and OK the screen.
then just display what you want this user to see.
if all users have own messages, you could add a field in the userdata table, holding a personalised welcome message that only that user sees.
by adding more datafields in the database you can add stuff to users pages, personalise them further, he hates cartoons ? ok i'll only show him Horror banners as punishment.
the loggedin.asp page would be the homepage you described, you could create a more detailed homepage the user can click to from this one, i'll leave that to you.
I hope that somehow got through to you <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
if not, then let me know.
With kind regards,
Dennis van Galen
Webmaster KPN Nederland
Financial and Information Services
Edited by - djvgalen on 13 Dec 2001 00:49:50
Hi i have a question how can i do that in UD 4, i setup diffrent Users each of the user has his own page where he can view information that i put in, my question is now how can i do that, is there any tutorial or example, where a user types in his username and password and is redirected to the right homepage
thx for the help ToXiT
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
I'll try...
Make a page, name it loggedin.asp
give some layout and save it for now
Make a page, name it login.htm
create on this page, after the layout you want is in place, where you want the login fields, a FORM...
Leave settings as is and click on FORM tag in the page window bottom.
insert a table, two columns 3 rows INSIDE the form.
left column holds text's Username, Password and Submit.
Right column holds three FORM Item's, two text fields and one submit button.
Label the fields properly, top textfield is called Username, the bottom one is called password.
Select the submit button and (if your dbase is properly setup with table that holds username and password) click in the server-behavior window (CTRL+F9 I believe) on the + (plus) sign, move down and select Authenticate User, login.
this window is pretty easy, you select the earlier created page as where to go when login is successfull and the login.html page if it fails.
You set the fields to check the proper dbase records (i assume you know how UDev works with dynamic data), password to password, username to username fields.
when everything is set, save page and open the logged in page.
do a server behavior, authenticate user -> Redirect if not logged in.
set that to authenticate username / password, redirect to login.html if not logged in and OK the screen.
then just display what you want this user to see.
if all users have own messages, you could add a field in the userdata table, holding a personalised welcome message that only that user sees.
by adding more datafields in the database you can add stuff to users pages, personalise them further, he hates cartoons ? ok i'll only show him Horror banners as punishment.
the loggedin.asp page would be the homepage you described, you could create a more detailed homepage the user can click to from this one, i'll leave that to you.
I hope that somehow got through to you <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
if not, then let me know.
With kind regards,
Dennis van Galen
Webmaster KPN Nederland
Financial and Information Services
Edited by - djvgalen on 13 Dec 2001 00:49:50
