Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Passing username to a recordset with the login page

Guest
Aug 31, 2011 Aug 31, 2011

Hi,

I am help develop a page for one of our classes at our school.  Is there a way that when you create a login form and authenticate to a new page that the username also get forwarded to a recordset so that it can be used to fill hidden fields of other forms on the new page?

TOPICS
Server side applications
684
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Sep 01, 2011 Sep 01, 2011

Yes. If you're using the built in DW login behavior, DW will place the user name in a session variable. Look carefully in the login code to see what this variable is called. If you're using ASP this session variable is called MM_Username. In PHP, there is a counterpart, but I can't recall at this time what it's called. If the page with the recordset is to only display data from that user, filter the recordset on the user name column using the Session variable parameter, and enter the name of the

...
Translate
Advocate ,
Sep 01, 2011 Sep 01, 2011

Yes. If you're using the built in DW login behavior, DW will place the user name in a session variable. Look carefully in the login code to see what this variable is called. If you're using ASP this session variable is called MM_Username. In PHP, there is a counterpart, but I can't recall at this time what it's called. If the page with the recordset is to only display data from that user, filter the recordset on the user name column using the Session variable parameter, and enter the name of the session variable in the text box.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 01, 2011 Sep 01, 2011

Thanks, this worked exactly the way I need it to!


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Sep 02, 2011 Sep 02, 2011
LATEST

You're welcome. I'm glad you were able to decipher my instructions!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines