Forums
This topic is locked
Login and then Detail Page??
Posted 08 Jan 2004 19:24:57
1
has voted
08 Jan 2004 19:24:57 john davies posted:
Hi,Can anyone recommend a way how to do this:
I am using the login user dynamic redirect behaviour in MX. Its working well but i would like the user that logs in to go to their personal details that can be displayed in a detail.asp page as long as a value to passed to it eg ClientID=34 or something like that.
Is there anyway to do this?? anyone?
Replies
Replied 08 Jan 2004 19:53:56
08 Jan 2004 19:53:56 Dave Thomas replied:
set up a simple asp session in DW, the session will exist on all pages, and although sessions isnt the best way to do things a simple procedure like this will have no impact on your server resources, so it's ok to use in my opinion.
name the session <b>MM_UserName</b> // simply put, this is DW's built in name which will auto find any logins that already exist in the db and assign a seesion to it.
now set the login redirect to point at your detail.asp
first bit done.
open detail.asp
filter the recordset so it does this::
<img src="www.nova-multigaming.com/images/session_filter.gif" border=0>
mine is set to "author, as it for my news manager, but you could set your to match your Username box or whatever else u wish.
and voila, your records are now filtered specifically for that user.
and on the plus side, you don't pass any ID=35 in the url, which i personally think is dodgy if your showing personal info.
Regards,
Dave
[DWXM 2004]|[FlashMX 2004 Pro]|[FW 2004]|[SQL]|[Access2002]|[ASP/VBScript]|[XP-Pro]
Edited by - UltraDav on 08 Jan 2004 20:03:24
name the session <b>MM_UserName</b> // simply put, this is DW's built in name which will auto find any logins that already exist in the db and assign a seesion to it.
now set the login redirect to point at your detail.asp
first bit done.
open detail.asp
filter the recordset so it does this::
<img src="www.nova-multigaming.com/images/session_filter.gif" border=0>
mine is set to "author, as it for my news manager, but you could set your to match your Username box or whatever else u wish.
and voila, your records are now filtered specifically for that user.
and on the plus side, you don't pass any ID=35 in the url, which i personally think is dodgy if your showing personal info.
Regards,
Dave
[DWXM 2004]|[FlashMX 2004 Pro]|[FW 2004]|[SQL]|[Access2002]|[ASP/VBScript]|[XP-Pro]
Edited by - UltraDav on 08 Jan 2004 20:03:24
Replied 08 Jan 2004 20:51:28
08 Jan 2004 20:51:28 john davies replied:
Thanks very much for you speedy response. Ill give that a go!
